callsCatching
infix fun <T> BlockingAnsweringScope<Result<T>>.callsCatching(block: BlockingCallDefinitionScope<Result<T>>.(CallArgs) -> T)
Function call executes block inside runCatching and returns Result. It rethrows any dev.mokkery.MokkeryRuntimeException as it indicates internal error and cannot be ignored.
infix fun <T> SuspendAnsweringScope<Result<T>>.callsCatching(block: suspend SuspendCallDefinitionScope<Result<T>>.(CallArgs) -> T)
Suspend function call executes block inside runCatching and returns Result. It rethrows any dev.mokkery.MokkeryRuntimeException as it indicates internal error and cannot be ignored.