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>
impl<'p, F, O> Quantify<'p, F, O>
sourcepub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
pub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be matched 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 matched exactly the specified number of times.
sourcepub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>where
O: Ordering<Kind = InAnyOrder>,
pub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>where
O: Ordering<Kind = InAnyOrder>,
Expect this call pattern to be matched at least the specified number of times.
Trait Implementations§
Auto Trait Implementations§
impl<'p, F, O> Freeze for Quantify<'p, F, O>where
O: Freeze,
impl<'p, F, O> !RefUnwindSafe for Quantify<'p, F, O>
impl<'p, F, O> Send for Quantify<'p, F, O>
impl<'p, F, O> Sync for Quantify<'p, F, O>
impl<'p, F, O> Unpin for Quantify<'p, F, O>
impl<'p, F, O> !UnwindSafe for Quantify<'p, F, O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more