pub struct Quantify<'p, F: MockFn, O> { /* private fields */ }
Expand description
Builder for defining how a call pattern gets verified with regards to quantification/counting.
Implementations§
source§impl<'p, F, O> Quantify<'p, F, O>where
F: MockFn + 'static,
O: Ordering,
impl<'p, F, O> Quantify<'p, F, O>where
F: MockFn + 'static,
O: Ordering,
sourcepub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
pub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly once.
sourcepub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
pub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly the specified number of times.
sourcepub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
pub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
Expect this call pattern to be called at least the specified number of times.