·go-unit-tests
</>

go-unit-tests

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

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

安装

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

如何安装 go-unit-tests

通过命令行快速安装 go-unit-tests AI 技能到你的开发环境

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

来源:cristiano-pacheco/ai-tools。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-26
更新时间
2026-03-10

Browse more skills from cristiano-pacheco/ai-tools

快速解答

什么是 go-unit-tests?

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

如何安装 go-unit-tests?

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

这个 Skill 的源码在哪?

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

详情

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