rust-mocking

Official

Easily mock Rust traits for isolated unit tests.

Authorgar-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provide trait-based mocks for Rust code to enable isolated unit tests.

Core Features & Use Cases

  • Automock generation for traits with mockall
  • Async mocking support using async_trait and tokio
  • Predicate-based argument matching for precise control
  • Return-value control and call-count management
  • Partial mocks with mockall_double for integration tests

Quick Start

Run cargo test to execute unit tests that use mockall-generated mocks against trait-based interfaces.

Dependency Matrix

Required Modules

None required

Components

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: rust-mocking
Download link: https://github.com/gar-ai/mallorn/archive/main.zip#rust-mocking

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 223,000+ vetted skills library on demand.