mockiato 0.9.5

A strict, yet friendly mocking library for Rust 2018
Documentation
use mockiato::mockable;
use std::io;

#[mockable(remote = "io::Write")]
trait Write {
    fn write(&mut self, buf: &[u8]) -> io::Result<usize>;

    fn flush(&mut self) -> io::Result<()>;
}

#[test]
fn remote_trait() {
    let write_mock = WriteMock::new();
    let _assert_implements_io_write: &dyn io::Write = &write_mock;
}