codemap icon indicating copy to clipboard operation
codemap copied to clipboard

test: improve cmd coverage from 63.4% to 67.6%

Open JordanCoin opened this issue 8 months ago • 0 comments

Summary

  • Add focused table-driven tests for cmd/skill.go behaviors (RunSkill usage, list/show output, init idempotency)
  • Add focused table-driven tests for cmd/serve.go JSON/error response helpers
  • Extend cmd/drift_test.go coverage for resolveCodePaths glob-cleanup/fallback behavior
  • Raise CI coverage floor from 50.0 to 55.0 in .github/workflows/ci.yml

Coverage

Scope Before After
cmd/ 63.4% 67.6%
TOTAL 72.7% 73.9%

Validation

  • [x] go test -race -coverprofile=coverage.out ./...
  • [x] go vet ./...
  • [x] gofmt -l .
  • [x] No source files modified, only _test.go files plus CI coverage floor update
  • [x] Coverage floor bumped in CI (50.0 -> 55.0)

JordanCoin avatar Apr 03 '26 22:04 JordanCoin