mimic icon indicating copy to clipboard operation
mimic copied to clipboard

Retrieving call count to easily make assertions on call count

Open Ziinc opened this issue 2 years ago • 1 comments

currently, the expect/3 api only performs call assertion at the end of the test case. However, there are situations where it is ideal to make call assertions throughout the test case (e.g. that api calls are made correctly, args are correct, etc), much like how :meck exposes a few functions to make call assertions easier.

Are there plans for such an API? I can dig into this and raise a PR if so.

Ziinc avatar Oct 26 '22 01:10 Ziinc

Would verify! do what you are describing https://hexdocs.pm/mimic/Mimic.html?#verify!/1 ?

edgurgel avatar Oct 27 '22 08:10 edgurgel