Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
77
72%
Does it follow best practices?
Impact
80%
1.12xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./docs/zh-TW/skills/golang-testing/SKILL.mdTable-driven tests with helpers and parallel subtests
Table-driven struct slice
100%
100%
t.Run for subtests
100%
100%
Loop variable capture
0%
0%
t.Parallel in subtests
0%
0%
t.Helper in helpers
100%
100%
t.Cleanup for resources
100%
0%
t.TempDir usage
100%
100%
wantErr pattern
100%
100%
Error path coverage
100%
100%
Fatalf vs Errorf
100%
100%
got/want error format
37%
100%
Public API testing
100%
100%
No time.Sleep
100%
100%
Benchmark tests with size parametrization and memory stats
b.ResetTimer after setup
100%
100%
Size-parametrized benchmarks
33%
100%
Multiple size values
100%
100%
benchmem flag documented
37%
0%
b.N loop structure
100%
100%
Copy to avoid cache effects
60%
100%
Multiple implementations compared
0%
0%
BenchmarkXxx naming
100%
100%
Table-driven tests also present
0%
100%
got/want error format
0%
50%
No time.Sleep
100%
100%
HTTP handler testing and golden files
httptest.NewRequest
100%
100%
httptest.NewRecorder
100%
100%
Golden file directory
100%
100%
-update flag support
100%
100%
Golden file read comparison
100%
100%
Interface for dependency
100%
100%
Mock struct with func fields
0%
100%
Table-driven HTTP tests
100%
100%
wantStatus pattern
100%
100%
t.Helper in helpers
0%
0%
t.Cleanup usage
0%
0%
Error path coverage
100%
100%
got/want error format
50%
100%
No time.Sleep
100%
100%
ae2cadd
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.