首页/ AI 技能 / @skilllib/skill-2014279412282241026
Skill站外收录 @skilllib/skill-2014279412282241026

go-testing

执行 Golang 单元测试的编写、运行与故障排查,遵循 MCPSpy 项目规范,通过 require 和 assert 区分关键与非关键断言,支持内部包测试及测试固件管理,提升代码覆盖率。

0.0 (0) 134 次安装 原作者 编程导航
收录于 2026-01-22
测试与安全 AI 技能

Skills.MD

# Go Testing Skill Provides guidance and automation for Golang testing tasks in the MCPSpy project. ## Testing Philosophy - Use `require` library for assertions that should stop test execution on failure - Use `assert` library for non-critical assertions where test should continue - Choose internal vs external package testing based on what needs to be tested - Test internal functions by placing test files in the same package (no `_test` suffix) - Avoid creating externally facing functions solely for testing purposes ## When to Use This Skill - Running unit tests with `go test` - Writing new test files and test cases - Debugging and fixing failing tests - Implementing test fixtures and mocks - Improving test coverage for the MCPSpy project

评论 0

还没有评论,来抢沙发。