pub struct Context { /* private fields */ }
Expand description
Manages the context for expectations of static methods.
Expectations on this method will be validated and cleared when
the Context
object drops. The Context
object does not
provide any form of synchronization, so multiple tests that set
expectations on the same static method must provide their own.
Implementations§
source§impl Context
impl Context
sourcepub fn checkpoint(&self)
pub fn checkpoint(&self)
Verify that all current expectations for this method are satisfied and clear them.
sourcepub fn expect<'__mockall_lt>(&self) -> ExpectationGuard<'__mockall_lt>
pub fn expect<'__mockall_lt>(&self) -> ExpectationGuard<'__mockall_lt>
Create a new expectation for this method.