cpp-mock-testing
CommunityEffortlessly generate C++ mocks with GMock.
Authorsentenz
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Automates the creation of mock objects and test scaffolding for C++ projects, enabling reliable isolation of units under test.
Core Features & Use Cases
- Mock Object Generation: generates mocks for interfaces and classes using MOCK_METHOD macros.
- Behavior Verification: allows precise expectations on method calls, arguments, and call counts.
- Test Architecture Templates: provides Arrange-Act-Assert style templates and supports patterns like NiceMock and StrictMock.
- Integration with common tooling: aligns with CMake, Google Test, and build/test workflows.
Quick Start
Create a GMock-based unit test for a given C++ interface to validate interactions and error handling.
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: cpp-mock-testing Download link: https://github.com/sentenz/skills/archive/main.zip#cpp-mock-testing 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.