Replies: 1 comment
|
Not really. The only supported way to verify expectations is by dropping the mock object or by calling its let foo = MockFoo::new();
let expectation = foo.expect_methodname()... ;
...
expectation.common.times.is_satisfied() |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want this because I'm using mockall in a wasm context, where due to the nature of the JS event loop, I have to do the equivalent of Jest's waitFor to make sure that a mock has been hit, and Rust doesn't let me catch panics on wasm.
All reactions