docs.rs failed to build mockiato-0.9.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
mockiato-0.9.5
Mockiato
A strict, yet friendly mocking library for Rust 2018
⚠️ Disclaimer for working with stable rust
Mockiato relies on the unstable proc_macro_diagnostics
API to print helpful messages
and the unstable specialization
feature to be able to print expected calls.
Mocks work as expected on stable rust, but diagnostics are very limited.
We recommend re-running failing tests using nighly rust in order to pin-point the issue.
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