Quality Assurance & Testing

Go Test Table Driven

Deep dive on table-driven tests in Go: when to use them, when to avoid them, struct design, subtest naming, advanced patterns like test matrices and shared setup, and refactoring bloated tables into clean ones. Use when writing table-driven tests, refactoring test tables, reviewing table test structure, or deciding whether table-driven is the right approach. Trigger examples: "table-driven test", "table test", "test cases struct", "test matrix", "parametrize tests", "data-driven test", "refactor test table". Not for: general test strategy, mocks, golden files, fuzzing (go-test-quality), benchmarks (go-performance-review).

Publisher / source
eduardo-sl/go-agent-skills (found on the CSV list)
Upstream record
eduardo-sl/go-agent-skills
Version
Version 2
Published
Publication review
Approved for publication · recorded passed scan 2026-11-02
Content fingerprint
9f151e3d4a9d7e8e586858ea0b2b88bd460d3ef70c137db11fed8ea519a0e6b3