Wottrich / android-smart-checklist

SmartChecklist is an application with high end technologies about do your tasks easily.
https://play.google.com/store/apps/details?id=wottrich.github.io.androidsmartchecklist
MIT License
8 stars 0 forks source link

[Fixture] Fix problem with kotlin.Result #44

Closed Wottrich closed 2 years ago

Wottrich commented 2 years ago

I fix two problems in this MR: First problem is about mockk not mocking kotlin.Result returns because of inline functions, so I create my own Result without inline functions and it works fine! Second problem happen because a coroutine thread problem, because coroutine not accept return from inline functions.

Link about:

  1. https://github.com/mockk/mockk/issues/485
  2. https://stackoverflow.com/questions/60956288/kotlin-coroutines-intrinsics-coroutinesingletons-cannot-be-cast-to-retrofit2-res