Golang Testing

Go testing best practices

serpro69 Updated

File contents

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.

serpro69/claude-toolbox/tree/main/cmd/vendor-profiles/testdata/skills/golang-testing commit b2db0b29af

Frequently asked questions

npx skillmds@latest add serpro69/golang-testing