Skill

go-testing

Go testing patterns. Routes to specific patterns.

From golang-workflow
Install
1
Run in your terminal
$
npx claudepluginhub jamesprial/prial-plugins --plugin golang-workflow
Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

Testing

Route by Pattern

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)
    }
}
Stats
Stars1
Forks0
Last CommitFeb 9, 2026