kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
189 stars 12 forks source link

Suspension functions can be called only within coroutine body #73

Closed Irfanulhaq1991 closed 8 months ago

Irfanulhaq1991 commented 8 months ago

Could execute every and verify on coroutine suspend methods

every { userRemoteDataSource.authenticate(isAny(),isAny()) } returns Result.success(UserRemoteDto("",200)) usrRepo.authenticate("###","###") verify { userRemoteDataSource.authenticate(isAny(),isAny()) }

SalomonBrys commented 8 months ago

Use: