Crate mockall_double

source ·
Expand description

Test double adapter for use with Mockall

This crate provides #[double], which can swap in Mock objects for real objects while in test mode. It’s intended to be used in tandem with the mockall crate. However, it is defined in its own crate so that the bulk of Mockall can remain a dev-dependency, instead of a regular dependency.

Attribute Macros

  • Import a mock type in test mode, or a real type otherwise.