--- name: go-testing description: Use when writing Go tests, table tests, fixtures, and focused integration checks. license: MIT compatibility: codex, claude, opencode metadata: category: go language: go --- # Go Testing Prefer table-driven tests for related cases and direct assertions for readable failures. Keep fixtures local and minimal. Use integration tests for boundaries such as HTTP, filesystem, database, or subprocess behavior.