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() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions