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 Updated 2 repo stars

File contents

CasLubbers/code-design-skills commit 807cc1cd54

Frequently asked questions

npx get-skill add caslubbers/go-tests