returnsFailure

infix fun <T> AnsweringScope<in Result<T>>.returnsFailure(error: Throwable)

Function call returns Result.failure with error.