pkg-testify-mock

Community

Master mock testing for Go with testify/mock & suite.

Authorep0ll
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides comprehensive guidance on using testify/mock and testify/suite to create, manage, and verify mock objects in Go testing environments.

Core Features & Use Cases

  • Mock Object Creation: Detailed instructions on generating and manually writing mock objects for interfaces.
  • Expectations & Verification: Explains how to set expectations with EXPECT() and verify calls.
  • Test Suite Management: Demonstrates how to organize tests into suites with setup, teardown, and shared state. For example, managing database or server setup for multiple tests.

Quick Start

Use this Skill to understand how to create mock objects and verify their expectations in your Go tests.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: pkg-testify-mock
Download link: https://github.com/ep0ll/bons-ci/archive/main.zip#pkg-testify-mock

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.