I'm testing a function with an external dependency inside of a tailrec
function. The function returns an Either
.
When mocking this dependency, I'm providing a single mock invocation. I get the following exception:
kotlin.NoWhenBranchMatchedException
Why is the exception occurring and how do I fix it?