Expand description
Tools to check if an argument to a mocked method matches expectations.
See: pattern!
and from_fn!
for additional ways to create matchers.
See faux::when!
for how to use matchers within
the macro.
Re-exports
pub use from_fn::from_fn;
pub use invocation_matcher::AnyInvocation;
Structs
- Wraps an
ArgMatcher<Arg>
and implementsArgMatcher<&Arg>
instead.
Traits
- Matcher for single argument of a method.
- Matcher for the invocation of a method.
Functions
- Returns a universal argument matcher.
- Returns an equality matcher.
- Returns an equality matcher for different types.