go-tests - Go test patterns for Terraform provider
Provides Go test patterns using table-driven tests, the Expectation pattern, and cmp.Diff for Terraform provider code.
Tags
Updated: 2026-09-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write Go unit tests
- Implement table-driven tests
- Assert with cmp.Diff
- Write Terraform acceptance tests
- Avoid timing-based tests
- Verify test branch coverage
Inputs
- Go source code
- Test files
- Terraform provider code
Outputs
- Go test files
- Unit test cases
- Acceptance test cases
Requirements
- Go testing package
- google/go-cmp package
- Terraform Plugin Testing framework
