Go Tests

Enforces idiomatic Go testing — table-driven cases with subtests, the standard library over assertion frameworks, t.Cleanup for teardown, httptest for HTTP, golden files, fuzzing, and benchmarks that measure. Use when writing or reviewing Go tests, and when the user mentions table tests, t.Run, t.Parallel, testify, testdata, golden files, httptest, go test -race, coverage, benchmarks, fuzz, or asks "how do I test this in Go".

CasLubbers 807cc1c 5.3 KB Updated

File contents

CasLubbers/code-design-skills/tree/main/skills/go-tests commit 807cc1cd54

Frequently asked questions

npx skillmds@latest add caslubbers/go-tests