什么是 mockery?
go-crypto-wallet 的模拟生成工作流程。每当开发人员要求为新接口生成模拟、添加需要模拟的测试覆盖率或替换端口接口的手动编写的测试存根时激活。克劳德必须使用“make mockery”——永远不要手工编写模拟结构代码。 来源:hiromaily/go-crypto-wallet。
go-crypto-wallet 的模拟生成工作流程。每当开发人员要求为新接口生成模拟、添加需要模拟的测试覆盖率或替换端口接口的手动编写的测试存根时激活。克劳德必须使用“make mockery”——永远不要手工编写模拟结构代码。
通过命令行快速安装 mockery AI 技能到你的开发环境
来源:hiromaily/go-crypto-wallet。
Mocks live in the infrastructure layer, beside the concrete implementations:
| Interface package (application/ports/) | Mock output directory (infrastructure/) |
| ports/api/btc/ | infrastructure/api/btc/mocks/ | | ports/api/eth/ | infrastructure/api/eth/mocks/ | | ports/api/xrp/ | infrastructure/api/xrp/mocks/ | | ports/file/ | infrastructure/storage/file/transaction/mocks/ | | ports/repository/cold/ | infrastructure/repository/cold/mocks/ | | ports/repository/watch/ | infrastructure/repository/watch/mocks/ |
go-crypto-wallet 的模拟生成工作流程。每当开发人员要求为新接口生成模拟、添加需要模拟的测试覆盖率或替换端口接口的手动编写的测试存根时激活。克劳德必须使用“make mockery”——永远不要手工编写模拟结构代码。 来源:hiromaily/go-crypto-wallet。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/hiromaily/go-crypto-wallet --skill mockerygo-crypto-wallet 的模拟生成工作流程。每当开发人员要求为新接口生成模拟、添加需要模拟的测试覆盖率或替换端口接口的手动编写的测试存根时激活。克劳德必须使用“make mockery”——永远不要手工编写模拟结构代码。 来源:hiromaily/go-crypto-wallet。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hiromaily/go-crypto-wallet --skill mockery 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/hiromaily/go-crypto-wallet