Correct me if I'm wrong, but usage of `fun Corouti...
# coroutines
g
Correct me if I'm wrong, but usage of
fun CoroutineScope.foo()
basically kills the usage of Mockito in my project, right? It has some support for suspended functions, but not extensions. So,
mockk
is the only answer or there are workarounds? That's quite a change for a big codebase...
v
basically kills the usage of Mockito in my project, right
depends on whether this function is a member in some class (e.g.
class Foo { fun CoroutineScope.bar() {}
) or a top-level function. Mockito works only for members
g
Yes, it is a member of some enclosing class. Do you have an example on how to mock and verify the
bar()
from your snippet?