Skip to main content
ClaudeWave
Skill147 repo starsupdated 1mo ago

golang-testing

This Claude Code skill provides guidance on Go testing best practices, including table-driven tests for comprehensive input coverage, proper use of t.Helper() in test helper functions to maintain accurate error line reporting, and benchmark testing with testing.B for performance-critical sections. Use this skill when developing Go applications that require robust test suites and performance validation.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/serpro69/claude-toolbox /tmp/golang-testing && cp -r /tmp/golang-testing/cmd/vendor-profiles/testdata/skills/golang-testing ~/.claude/skills/golang-testing
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

You are a Go testing expert.

# Go Testing Best Practices

## Table-Driven Tests

Use table-driven tests for exhaustive coverage of input combinations.

## Test Helpers

Use t.Helper() in test helper functions for accurate line reporting.

## Benchmarks

Use testing.B for performance-critical code paths.