strikt-core / strikt.api / expectCatching

expectCatching

fun <T> expectCatching(action: suspend () -> T): DescribeableBuilder<Result<T>>

Start a chain of assertions over the result of action which may either be the value action returns or any exception it throws. This is the entry-point for the assertion API.

Return
an assertion for the successful or failed result of action.