go-table-driven-tests
CommunityStandardize Go tests with table-driven patterns.
AuthorXe
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Table-driven tests reduce duplication and improve maintainability in Go by consolidating many case checks into a single test harness, making tests easier to read and extend.
Core Features & Use Cases
- Consolidates repetitive test cases into a single table and loop.
- Supports slice-pattern tests for deterministic case ordering and map-pattern tests for non-deterministic orders.
- Aligns with Go testing practices and repository conventions, improving consistency across tests.
Quick Start
Refactor a Go test to a table-driven pattern and run go test to verify all cases pass.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-table-driven-tests Download link: https://github.com/Xe/x/archive/main.zip#go-table-driven-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.