Skip to content
Back to skills

Testing

ASecurity

Go testing patterns. Routes to specific patterns.

  • 3 stars
  • 0 votes
  • 0 copies
  • 17 views
  • Added February 7, 2026
testinggotesting

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add JamesPrial/claudefiles --skill testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamesprial-testing/badge)](https://www.skillsdirectory.com/skills/jamesprial-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-testing
description: Go testing patterns. Routes to specific patterns.
---

# Testing

## Route by Pattern
- Table-driven tests → see [table/](table/)
- Subtests with t.Run → see [subtests/](subtests/)
- Test helpers → see [helpers/](helpers/)
- Benchmarks → see [benchmarks/](benchmarks/)

## 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:**
```go
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)
    }
}
```

Files in this skill

  • SKILL.md751 B
  • benchmarks/SKILL.md1.4 KB
  • helpers/SKILL.md1.1 KB
  • subtests/SKILL.md1.3 KB
  • table/SKILL.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.