samedi 4 janvier 2020

Koin mocking suspend function

Can anybody tell me if/how I can mock a supend funktion with koin test? The only thing I know so far is this behavior

declareMock<...> {
      given(..)).willReturn(...)
   }

but this doesn't work on suspend fun(). Is there anything similar to 'coEvery' in Mockk, or how can I do this?

Thanx in advance,

Wolfgang

Aucun commentaire:

Enregistrer un commentaire