Hey guys, hope you doing good! Currently i`m worki...
# arrow
j
Hey guys, hope you doing good! Currently i`m working on code coverage of some functions using cooroutines, my problem is that i dont know how to cover those lines that launch coroutines like:
runBloking {}
s
Hey @Jimmy Alvarez, What version of Arrow are you using? If you update to the latest version that function should now be
inline
and thus not require
runBlocking
.
j
implementation "io.arrow-kt:arrow-core:0.11.0"
I got a problem after updating and it is that the code i’m working on relies a lot on
arrow.core.Either.Companion.left
, looks like it is deprecated. or moved to other library
I updated to last version and everything coverage increased a lot!!!! but i do not understand why ehehhe
s
I got a problem after updating and it is that the code i’m working on  relies a lot on  
arrow.core.Either.Companion.left
 , looks like it is deprecated. or moved to other library
Here is a release post with some details on how you can migrate. https://www.47deg.com/blog/arrow-0.13.0-release/ But
Either.left
was deprecated in favor of using the actual constructor
Either.Left
. So if you replace
arrow.core.Either.Companion.left
with
arrow.core.Either.Left
and use
Left
instead of
left
it should fix your issues 🙂
j
Those were my changes and works perfectly thanks for the huge help sr!!
s
You're very welcome! 🙂