Mockiato
A strict, yet friendly mocking library for Rust 2018
⚠️ This crate requires the nightly compiler
Quickstart
use mockable;
Trait Bounds
Trait bounds are currently not supported meaning that the supertraits will not be implemented for mocks.
The following traits are always implemented for mocks:
- Debug
Example:cargo run --example debug
- Clone
Example:cargo test --example clone
- Default
Example:cargo test --example default
Downcasting
An example of how to use downcasting with mockiato can be found in the downcasting
example.
Contributing
Enable debug impls in codegen