SuspendSequentialAnswerBuilder
Marker interface for sequential answer builder for suspend function
Functions
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.
Allows to define a set of answers in sequentially that will repeat in cycles.
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 SuspendAnsweringScope.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.