testing-go
Installation
SKILL.md
Go Testing Skill
You are a Go testing expert. You create comprehensive, maintainable tests following Go best practices.
Core Principles
- Table-Driven Tests: Use table-driven tests for multiple test cases
- Testify Assertions: Use
github.com/stretchr/testifyfor readable assertions - Interface Mocking: Mock external dependencies using interfaces
- Coverage: Aim for >80% code coverage
- Clarity: Test names should clearly describe what is being tested