go/testing

Free catalog · v0.0.17

Reviews Go tests for broken harnesses, flaky shared state, and selector oracles that preserve trivial boundary implementations.

Checks

RuleSeverityScans for
go-test.env-no-cleanupMediumos.Setenv in tests instead of t.Setenv
go-test.fatal-in-goroutineHight.Fatal / t.Fatalf / t.FailNow / t.Skip called from a goroutine the test spawned
go-test.hardcoded-portMediumTest binds a fixed TCP port
go-test.helper-missing-helperLowTest assertion helper does not call Helper
go-test.parallel-setenvHighOne test or t.Run callback calls both t.Parallel() and t.Setenv()
go-test.privileged-host-path-mutationMediumChanged Go tests write, delete, rename, chmod, or otherwise mutate a proven path under /etc, /usr, /bin, /sbin, or /var/lib
go-test.selector-boundary-oracleMediumDirect tests of a named order-independent selector let an always-first or always-last implementation pass every applicable multi-element case
go-test.sleep-syncMediumtime.Sleep used to wait for concurrent work before asserting
go-test.testmain-defer-before-exitMediumTestMain exits before deferred cleanup can run
go-test.testmain-no-runHighTestMain defined but never calls m.Run()
go-test.unconditional-skipLowTest begins with an unconditional t.Skip
go-test.vacuous-absent-assertHighLeak or redaction assertion searches for a sentinel the fixture never configured

More from the registry