·go-unit-tests
</>

go-unit-tests

cristiano-pacheco/ai-rules

根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。

7安装·1热度·@cristiano-pacheco

安装

$npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-unit-tests

SKILL.md

Generate comprehensive Go unit tests following testify patterns and the Arrange-Act-Assert methodology.

Use individual test functions with subtests for functions without instances.

When tests are complete, respond with: Tests Done, Oh Yeah!

根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。 来源:cristiano-pacheco/ai-rules。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-unit-tests
分类
</>开发工具
认证
收录时间
2026-02-17
更新时间
2026-02-18

快速解答

什么是 go-unit-tests?

根据证明模式和最佳实践生成全面的 Go 单元测试。在创建或更新 Go 测试文件、为具有依赖项的结构编写测试套件、测试独立函数、使用模拟或要求为 Go 代码添加测试覆盖率时使用。 来源:cristiano-pacheco/ai-rules。

如何安装 go-unit-tests?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-rules --skill go-unit-tests 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/cristiano-pacheco/ai-rules

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-17