com um clique
go-test-coverage
Analyzes Go test coverage and suggests improvements
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Analyzes Go test coverage and suggests improvements
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Validates Go concurrency patterns
Validates Go context.Context usage patterns
Validates Go error handling patterns
Reviews code for Hexagonal Architecture compliance
Validates Go interface design and abstractions
Performs security review on code changes
| name | go-test-coverage |
| description | Analyzes Go test coverage and suggests improvements |
Coverage numbers are a floor, not a ceiling. A test that executes code but asserts nothing is noise. Semantic coverage is what matters: do your tests catch real bugs? Mutation testing (Gremlins) validates this by introducing small bugs — if your tests pass, they are too weak.
1. [ ] Tests assert specific return values — not just `err == nil` 2. [ ] Table-driven tests for multiple scenarios using `t.Run` 3. [ ] Error branches tested explicitly 4. [ ] Edge cases: empty/nil input, zero values, boundary conditions 5. [ ] Tests deterministic — no `time.Now()`, no global state, no random without seed 6. [ ] Mocks implement port interfaces, not concrete types 7. [ ] Integration tests use `//go:build integration` tag 8. [ ] Coverage ≥80% on `internal/domain` and `internal/app` 9. [ ] Test file naming: `foo_test.go` alongside `foo.go` 10. [ ] `make ci` passes with all tests<mutation_testing>
Run make mutation-test-dry for a fast check. For critical domain code, run make mutation-test: