mockiato 0.4.1

Minimalistic mocking framework, ready for Rust 2018! 🎉
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mockiato::mockable;
use std::fmt::Debug;

#[mockable]
trait Animal: Debug {
    fn make_sound(&self);
}

fn main() {
    let mut animal = AnimalMock::default();

    animal.expect_make_sound().times(1);
    animal.make_sound();
}