Module faux::matcher

source ·
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 implements ArgMatcher<&Arg> instead.

Traits

Functions