strikt-core / strikt.assertions / isFailure

isFailure

fun <R> Builder<Result<R>>.isFailure(): Builder<Throwable>

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

See Also

runCatching

Author
Bengt Brodersen