Implements comprehensive Go testing strategies, including TDD, table-driven tests, and advanced mocking to ensure high-quality, production-ready code.
This skill provides Claude with specialized knowledge for writing, refactoring, and optimizing Go tests. It covers a wide range of methodologies including Test-Driven Development (TDD), table-driven testing patterns, and subtest organization. It also includes expert guidance on advanced topics such as mocking interfaces and time, testing HTTP handlers using httptest, transaction-based database testing, performance benchmarking, and Go 1.18+ fuzzing to ensure robust and maintainable Go applications.
主な機能
010 GitHub stars
02Integration testing for HTTP handlers and database layers
03Systematic table-driven and subtest generation
04Test-Driven Development (TDD) workflow automation
05Advanced mocking for interfaces, time, and HTTP clients
06Performance benchmarking and native Go fuzz testing
ユースケース
01Debugging complex logic through targeted unit and integration tests
02Improving test coverage and reliability in existing Go codebases
03Developing new Go features using a robust test-first methodology