kotest-assertions-arrow / io.kotest.assertions.arrow.either / arrow.core.Either

Extensions for arrow.core.Either

shouldBeLeft

fun <T> Either<T, Any?>.shouldBeLeft(): Unit
infix fun <A> Either<A, *>.shouldBeLeft(fn: (A) -> Unit): Unit
infix fun <A> Either<A, Any?>.shouldBeLeft(a: A): Unit

shouldBeLeftOfType

fun <A> Either<Any?, Any?>.shouldBeLeftOfType(): Unit

shouldBeRight

fun <T> Either<*, T>.shouldBeRight(): Unit
infix fun <B> Either<*, B>.shouldBeRight(fn: (B) -> Unit): Unit
infix fun <B> Either<Any?, B>.shouldBeRight(b: B): Unit

shouldNotBeLeft

fun <T> Either<T, Any?>.shouldNotBeLeft(): Unit
infix fun <A> Either<A, Any?>.shouldNotBeLeft(a: A): Unit

shouldNotBeLeftOfType

fun <A> Either<Any?, Any?>.shouldNotBeLeftOfType(): Unit

shouldNotBeRight

fun <T> Either<Any?, T>.shouldNotBeRight(): Unit
infix fun <B> Either<Any?, B>.shouldNotBeRight(b: B): Unit