什么是 go-unit-tests?
根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。 来源:cristiano-pacheco/ai-tools。
根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。
通过命令行快速安装 go-unit-tests AI 技能到你的开发环境
来源:cristiano-pacheco/ai-tools。
Generate comprehensive Go unit tests following testify patterns and the Arrange-Act-Assert methodology.
Use suite.Suite from testify when the system under test is a struct with injected dependencies.
Use SetupSuite + TearDownSuite when initialization is expensive and safe to share across all tests (e.g. generating RSA keys, creating temp directories).
根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。 来源:cristiano-pacheco/ai-tools。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-unit-tests根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。 来源:cristiano-pacheco/ai-tools。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-unit-tests 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cristiano-pacheco/ai-tools