strikt-core / strikt.assertions / isSuccess

isSuccess

fun <R> Builder<Result<R>>.isSuccess(): Builder<R>

Asserts that the result of an action did not throw any exception and maps to an assertion on the result value. The assertion fails if the subject's Result.isSuccess returns false.

See Also

runCatching

Author
Bengt Brodersen