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". Do NOT use for general test strategy, mocking, golden files, or fuzz testing (use go-test-quality). Do NOT use for benchmarks (use go-performance-review).

Gisellesleeveless396 07b8c47 12.8 KB Updated

File contents

Gisellesleeveless396/go-agent-skills/tree/main/skills/(testing)/go-test-table-driven commit 07b8c470dc

Frequently asked questions

npx skillmds@latest add gisellesleeveless396/go-test-table-driven