[][src]Crate mockiato

Minimalistic mocking framework, ready for Rust 2018

Re-exports

pub use mockiato_codegen::mockable;

Structs

ExpectedCalls

Defines how often a method call is expected to be called.

MethodCallBuilder

Configures an expected method call. This builder is returned from the expect_* methods on a generated mock.

Functions

any

Creates a new ArgumentMatcher that matches any value.

nearly_eq

Creates a new ArgumentMatcher that matches against values using NearlyEq

nearly_eq_with_accuracy

Creates a new ArgumentMatcher that matches against values using NearlyEq

partial_eq

Creates a new ArgumentMatcher that matches against values using PartialEq

partial_eq_owned

Creates a new ArgumentMatcher that matches against values using PartialEq. Supports comparing a reference against an owned value.

unordered_vec_eq

Creates a new ArgumentMatcher that matches Vecs and slices while disregarding the exact order of the elements.