Skip to content

test: 100% coverage for cache, client, grouper#52

Merged
sofq merged 1 commit intomainfrom
chore/100-percent-coverage
Mar 16, 2026
Merged

test: 100% coverage for cache, client, grouper#52
sofq merged 1 commit intomainfrom
chore/100-percent-coverage

Conversation

@sofq
Copy link
Copy Markdown
Owner

@sofq sofq commented Mar 16, 2026

Summary

  • cache.go: 95.7% → 100% (ReadFile error path)
  • grouper.go: 0%/96% → 100% (added "sses" singularize test, removed dead code branch in DeriveVerb Case 2)
  • client.go: 81.6% → 98% (30+ new tests covering OAuth2 edge cases, pagination auth/connection errors, Fetch error paths, dry-run with non-JSON body, URL construction edge cases; remaining 2% is structurally unreachable defensive code)

Test plan

  • make test passes
  • make lint passes
  • Coverage verified with go tool cover

- cache.go: 100% (add ReadFile error path test)
- grouper.go: 100% (add "sses" singularize test, remove dead code branch)
- client.go: 98% (add 30+ tests covering auth, pagination, fetch, dry-run edge cases; remaining 2% is structurally unreachable defensive code)
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sofq sofq enabled auto-merge (squash) March 16, 2026 18:02
@sofq sofq merged commit 576f540 into main Mar 16, 2026
14 checks passed
@sofq sofq deleted the chore/100-percent-coverage branch March 16, 2026 18:03
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