Skip to content

Add tests for coverage gaps#6

Merged
snabb merged 1 commit intomasterfrom
improve-test-coverage
Apr 18, 2026
Merged

Add tests for coverage gaps#6
snabb merged 1 commit intomasterfrom
improve-test-coverage

Conversation

@snabb
Copy link
Copy Markdown
Owner

@snabb snabb commented Apr 18, 2026

Summary

  • add store coverage for memory, file, limited, and default store implementations
  • add HTTPReaderAt tests for metadata accessors, malformed partial responses, validation failures, EOF behavior, and fallback store usage
  • raise main package coverage from 39.6% to 90.6% while keeping the suite green

Testing

  • go test ./... -coverprofile=coverage.out

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.18%. Comparing base (026354e) to head (1f2f99d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master       #6       +/-   ##
===========================================
+ Coverage   38.18%   83.18%   +45.00%     
===========================================
  Files           3        3               
  Lines         220      220               
===========================================
+ Hits           84      183       +99     
+ Misses        119       19      -100     
- Partials       17       18        +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@snabb snabb merged commit 1964c1c into master Apr 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant