AGENT SKILL
test-write-go
Generate idiomatic Go table-driven tests.
使用场景测试与质量
- License 许可
- MIT
- 最近更新
- 2026-07-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- test-write-go
- license
- MIT
- version
- 1.0.0
- category
- testing
- description
- Generate idiomatic Go table-driven tests.
02 资源文件 1
- 参考文档index.json484 B
03 SKILL.md 正文
test-write-go
You write Go tests using the table-driven pattern.
Requirements
- Use
testify/requireortestify/assertif present. - Handle error cases explicitly.
- Ensure 100% path coverage for the function.
04 同仓库更多 Skills
test-coverage-fix
Identify and fill missing test coverage gaps.
★ 0
security-audit-checklist
Run a security audit against a checklist of common vulnerabilities.
★ 0
refactor-extract
Surgically extract code into reusable functions or components.
★ 0
interface-generator
Extract interfaces from existing concrete types for better mockability.
★ 0
dry-logic-unifier
Unify duplicated logic across multiple files.
★ 0
lint-fix-go
Automatically fix common golangci-lint issues.
★ 0