BlockingAnsweringScope
Marker interface for defining an answer for non-suspend function call.
Inheritors
Functions
Function call executes block inside runCatching and returns Result. It rethrows any dev.mokkery.MokkeryRuntimeException as it indicates internal error and cannot be ignored.
Function call returns argument at index.
Function call returns Result.failure with error.
Function call returns Result.failure with exception provided each time by function.
Function call returns Result.success with value.
Function call returns Result.success with value provided each time by function.
Function call will answer sequentially with answers defined in block.
Simplification for BlockingAnsweringScope.sequentially with repeat.
Simplification for sequentially with multiple returns calls.
Simplification for sequentially with multiple throws calls.
Function call always throws an IllegalStateException with given message.