BeClaude

golang-testing

New
SmitheryDevelopmentby affaan-m

Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。

First seen 5/24/2026

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

1
Open your MCP config
~/.claude.json
2
Add the server config

Add the configuration to "mcpServers": { "golang-testing": { "command": "...", "args": [] } }

3
Restart Claude Code
/mcp

Use Cases

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.

Usage Examples

1

/golang-testing Write table-driven tests for a function that validates email addresses, including cases for valid, invalid, and empty strings.

2

/golang-testing Add subtests to the existing TestParseConfig function, grouping related test cases and adding descriptive names.

3

/golang-testing Create a benchmark for the Fibonacci function and run it with different input sizes to compare performance.

View source on GitHub
testingcoding

Security Audits

LicenseUnknownSourceWarnRepositoryPass

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..