Skip to content

test: increase test coverage to 98%#5

Merged
christiangda merged 5 commits intomainfrom
feat/improve-test-coverage
Feb 14, 2026
Merged

test: increase test coverage to 98%#5
christiangda merged 5 commits intomainfrom
feat/improve-test-coverage

Conversation

@christiangda
Copy link
Contributor

Summary

  • Add 37 new tests covering logger code paths, error type assertions, edge cases, and CLI helper functions
  • Library coverage: 89.6% → 98.0% (+8.4%)
  • CLI coverage: 0.0% → 20.3% (new)
  • Total coverage: 59.2% → 71.6% (+12.4%)

Test plan

  • go test -v -race -count=1 ./... — all tests pass
  • go vet ./... — no warnings
  • Coverage verified via go test -coverprofile and go tool cover -func

🤖 Generated with Claude Code

christiangda and others added 2 commits February 14, 2026 20:22
Add 37 new tests covering logger code paths, error type assertions,
edge cases, and CLI helper functions.

Library coverage: 89.6% → 98.0% (+8.4%)
CLI coverage: 0.0% → 20.3% (new)
Total coverage: 59.2% → 71.6% (+12.4%)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@christiangda christiangda self-assigned this Feb 14, 2026
christiangda and others added 3 commits February 14, 2026 20:28
Tests using mock executor with darwin-specific commands (sysctl,
system_profiler, ioreg) fail on Linux CI because Linux's
collectIdentifiers reads from filesystem directly. Move these tests
to darwin build-tagged files. Also move Example_integrity and
ExampleProvider_Diagnostics which make darwin-specific assumptions
about collected component counts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@christiangda christiangda merged commit 84cda4c into main Feb 14, 2026
5 checks passed
@christiangda christiangda deleted the feat/improve-test-coverage branch February 14, 2026 19:36
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

Comments