Usage
Add the following to your Cargo.toml:
[]
= "0.1.0"
Example
;
❗️ Limitation
Currently, the macro only supports mocking functions that return a value. The macro does not support mocking functions that take arguments.
And Always must mock after mockimbap::mockable
So, you may do like this:
// mock.rs
;
// main.rs
// Like this, you must put mock file after mockimbap::mockable