go-testing-helpers
Installation
SKILL.md
Test Helpers
Extract common test logic into helper functions with t.Helper().
CORRECT
func assertEqual(t *testing.T, got, want interface{}) {
t.Helper() // Reports caller line, not helper line
if got != want {
t.Errorf("got %v, want %v", got, want)
}
}