Skip to content

test(httpnet): cover per-host breaker, cooldown, and throttle semantics

eac3972
Select commit
Loading
Failed to load commit list.
Draft

feat(bitswap/httpnet): dedupe traffic across peer IDs sharing one HTTP gateway #1151

test(httpnet): cover per-host breaker, cooldown, and throttle semantics
eac3972
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded May 18, 2026 in 0s

63.45% (+0.35%) compared to 23c380b

View this Pull Request on Codecov

63.45% (+0.35%) compared to 23c380b

Details

Codecov Report

❌ Patch coverage is 68.91892% with 92 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.45%. Comparing base (23c380b) to head (eac3972).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
bitswap/network/httpnet/pinger.go 51.56% 57 Missing and 5 partials ⚠️
bitswap/network/httpnet/msg_sender.go 64.38% 22 Missing and 4 partials ⚠️
bitswap/network/httpnet/error_tracker.go 90.47% 1 Missing and 1 partial ⚠️
bitswap/network/httpnet/httpnet.go 87.50% 1 Missing and 1 partial ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1151      +/-   ##
==========================================
+ Coverage   63.10%   63.45%   +0.35%     
==========================================
  Files         267      269       +2     
  Lines       26777    26918     +141     
==========================================
+ Hits        16897    17081     +184     
+ Misses       8158     8114      -44     
- Partials     1722     1723       +1     
Files with missing lines Coverage Δ
bitswap/network/httpnet/breaker.go 100.00% <100.00%> (ø)
bitswap/network/httpnet/cooldown.go 85.96% <100.00%> (+28.27%) ⬆️
bitswap/network/httpnet/inflight.go 100.00% <100.00%> (ø)
bitswap/network/httpnet/error_tracker.go 91.66% <90.47%> (-8.34%) ⬇️
bitswap/network/httpnet/httpnet.go 62.50% <87.50%> (+3.01%) ⬆️
bitswap/network/httpnet/msg_sender.go 71.93% <64.38%> (+11.08%) ⬆️
bitswap/network/httpnet/pinger.go 54.71% <51.56%> (+18.15%) ⬆️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.