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
#![feature(custom_attribute, plugin)]

use mockiato::mockable;
use std::fmt::{self, Display};

trait Debug {}

#[mockable]
trait Greeter: fmt::Debug {
    fn say_hello(&self, name: &dyn Display) -> String;
}

#[test]
fn test() {
    let _mock = GreeterMock::new();
}