Struct wiremock::Times [−][src]
pub struct Times(_);
Expand description
Specify how many times we expect a Mock
to match via expect
.
It is used to set expectations on the usage of a Mock
in a test case.
You can either specify an exact value, e.g.
use wiremock::Times;
let times: Times = 10.into();
or a range
use wiremock::Times;
// Between 10 and 15 (not included) times
let times: Times = (10..15).into();
// Between 10 and 15 (included) times
let times: Times = (10..=15).into();
// At least 10 times
let times: Times = (10..).into();
// Strictly less than 15 times
let times: Times = (..15).into();
// Strictly less than 16 times
let times: Times = (..=15).into();
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Times
impl UnwindSafe for Times
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more