Install
1
Run in your terminal$
npx claudepluginhub jamesprial/prial-plugins --plugin golang-workflowTool Access
This skill uses the workspace's default tool permissions.
Skill Content
Testing
Route by Pattern
- Table-driven tests → see table/
- Subtests with t.Run → see subtests/
- Test helpers → see helpers/
- Benchmarks → see benchmarks/
- Fuzz testing (Go 1.18+) → see fuzz/
- Property-based testing → see property/
- Concurrency testing → see concurrency/
Quick Check
- Tests named Test_Function_Scenario
- Table tests for >2 cases
- Helpers call t.Helper()
- Parallel tests capture loop vars
Common Patterns
Basic test structure:
func Test_Function_Scenario(t *testing.T) {
// Arrange
input := "test"
// Act
result := Function(input)
// Assert
if result != expected {
t.Errorf("got %v, want %v", result, expected)
}
}
Similar Skills
Stats
Stars1
Forks0
Last CommitFeb 9, 2026