test-structure

How to structure Go tests. Use when writing Go unit tests; not for integration tests.

SKILL.md

GitHub
  • Always write table-driven tests with named cases and t.Run.
  • Keep fixtures in testdata.