Hi, I just ran into a very tricky problem. I had a mock of an extension function from a test which ended up recording millions of method calls, which ultimately led the test execution to hang completely.
In my case I had also forgot to clear mocks at one point, which made the hang happen in a completely different test which didn't make it obvious that the problem was related to a mock at all. Posting here to get some input before possibly filing an issue on octocat
I think it would be reasonable that mockk had a (configurable) cap of the amount of recorded invocations, and any further calls throws an exception. The cap should be sufficiently low to not cause an extreme slowdown of tests before throwing exception.