Does mockk support suspend inline?

Viewed 1117

It looks like coEvery hangs when I am trying to mock suspend inline function.

The code below works if remove inline modifier

Function in storeApi: suspend inline fun getAllStores(): List<Store>

Test code: coEvery { storeApi.getAllStores() } returns allStores

I'd like to have a way to mock suspend inline function, not only suspend

1 Answers

Simple answer - no and not possible.

Related