pub trait Mock: Send + Sync {
// Required methods
fn calls(&self) -> Vec<MockCall>;
fn call_count(&self) -> usize;
fn verify(&self) -> TestingResult<()>;
fn reset(&self);
}Expand description
Mock 行为 trait
Required Methods§
Sourcefn call_count(&self) -> usize
fn call_count(&self) -> usize
获取调用次数
Sourcefn verify(&self) -> TestingResult<()>
fn verify(&self) -> TestingResult<()>
验证期望