Crate mimicry_derive

Crate mimicry_derive 

Source
Expand description

Procedural macros for mimicry.

See mimicry docs for examples of usage.

Attribute Macros§

mock
Injects mocking logic into a function / method.

Derive Macros§

CallReal
Derives the CallReal trait for a struct allowing to switch to real implementations for partial mocking or spying.
Mock
Derives the Mock trait for a type, allowing to use it as a state for mocking.