golang-testing
NewGo测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Summary
This skill provides comprehensive support for Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and coverage analysis.
- It helps developers follow TDD methodology with idiomatic Go practices, making test writing more efficient and maintainable.
Install & Usage
~/.claude.jsonAdd the configuration to "mcpServers": { "golang-testing": { "command": "...", "args": [] } }
/mcpUse Cases
Usage Examples
/golang-testing Write table-driven tests for a function that validates email addresses, including cases for valid, invalid, and empty strings.
/golang-testing Add subtests to the existing TestParseConfig function, grouping related test cases and adding descriptive names.
/golang-testing Create a benchmark for the Fibonacci function and run it with different input sizes to compare performance.
Security Audits
Frequently Asked Questions
What is golang-testing?
This skill provides comprehensive support for Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and coverage analysis. It helps developers follow TDD methodology with idiomatic Go practices, making test writing more efficient and maintainable.
How to install golang-testing?
To install golang-testing: open your mcp config (~/.claude.json), then add the config to "mcpServers": { "golang-testing": { "command": "...", "args": [] } }. Finally, /mcp in Claude Code.
What is golang-testing best for?
golang-testing is a mcp categorized under Development. It is designed for: testing, coding. Created by affaan-m.
What can I use golang-testing for?
golang-testing is useful for: Write table-driven tests for a Go function that processes user input with multiple edge cases.; Add subtests to an existing test suite to improve failure diagnostics and test organization.; Create a benchmark to measure performance of a sorting algorithm across different input sizes.; Set up fuzz testing to discover unexpected inputs that cause a parser to panic.; Generate test coverage reports and identify untested code paths in a Go package.; Refactor a monolithic test function into a structured set of subtests with shared setup and teardown..