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
15
16
use mockiato::{mockable, partial_eq_owned};
use std::collections::HashMap;

#[mockable]
trait Foo {
    fn bar(&self, hashmap: &HashMap<usize, usize>);
}

#[test]
fn works_with_hashmap() {
    let mut mock = FooMock::new();

    mock.expect_bar(partial_eq_owned(HashMap::new())).times(1);

    mock.bar(&HashMap::new());
}