什麼是 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