kosi-libs / MocKMP

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

Suspension functions can be called only within coroutine body #73

Closed Irfanulhaq1991 closed 6 months ago

Irfanulhaq1991 commented 6 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 6 months ago

Use: