kosi-libs/MocKMP

Call count for mocks

afonsograca opened this issue · 2 comments

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. 🙌

Is this not sufficient?

verify {
    repeat(5) { myAmazingApi(isAny()) }
}

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.