go-mock-patterns
CommunityStandardized mock and test double strategies for Go.
AuthorPremModhaOfficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive guide and implementation patterns for creating and managing test doubles such as mocks, fakes, and stubs in Go programming, streamlining testing practices.
Core Features & Use Cases
- Mock Generation: Commands to generate mocks from interface sources using gomock.
- Controller Lifecycle & Expectation Management: Demonstrates how to create controllers, set expectations, and run tests reliably.
- Custom Matchers & Ordered Expectations: Provides methods for advanced verification scenarios like custom argument matching and ordered execution.
- Implementation Patterns: Clarifies when to use mocks, fakes, or stubs, with concrete code examples.
- Supporting NATS Testing: Guides on mocking messaging systems and using embedded services in unit tests.
Quick Start
Refer to the README for detailed setup, mockgen command examples, and testing strategies to integrate mock patterns into your Go projects.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-mock-patterns Download link: https://github.com/PremModhaOfficial/sdk-pipeline/archive/main.zip#go-mock-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.