asomers / mockall

A powerful mock object library for Rust
Apache License 2.0
1.5k stars 62 forks source link

Support for multiple calls for functions that take no parameters #481

Closed QnJ1c2kNCg closed 1 year ago

QnJ1c2kNCg commented 1 year ago

After reading this section: https://docs.rs/mockall/latest/mockall/#matching-multiple-calls

It's unclear if there is support to mock multiple calls to the same function, if that function does not take an parameter.

asomers commented 1 year ago

Sure there is. What's your question? Are you unsure how to order them? Use a Sequence.

QnJ1c2kNCg commented 1 year ago

Thanks, this did the trick. Sorry for the trouble.