mock-patterns
CommunityStandardized gomock test doubles for Go.
AuthorPremModhaOfficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Standardizes the usage of test doubles across Go microservices by defining when to use mocks, fakes, and stubs, and by enforcing gomock-based implementations.
Core Features & Use Cases
- Mock guidance for interaction verification using gomock
- In-memory fake implementations for isolated unit tests
- Stub patterns for fixed return values and simple dependencies
- Custom matchers and ordered expectation support for deterministic tests
- Controller lifecycle management and in-test organization conventions
Quick Start
Run unit tests with go test ./... and leverage gomock-generated mocks for interface-based testing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: mock-patterns Download link: https://github.com/PremModhaOfficial/go-sdk-pipeline/archive/main.zip#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.