Call count for mocks
afonsograca opened this issue · 2 comments
afonsograca commented
Are there any plans to add the ability of verifying how many times an expectation was called? Sometimes a simple yes/no is not enough to track down some unexpected behaviour.
Keep up the great work. 🙌
SalomonBrys commented
Is this not sufficient?
verify {
repeat(5) { myAmazingApi(isAny()) }
}
SalomonBrys commented
At the moment, we'll consider that using repeat
is sufficient.
Feel free to reopen this issue with a use case if that is not enough.