Block

Constructors

Link copied to clipboard
constructor(block: BlockingCallDefinitionScope<T>.(CallArgs) -> T)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun call(scope: FunctionScope): T

DEPRECATED: Use call with MokkeryBlockingCallScope instead!

open override fun call(scope: MokkeryBlockingCallScope): T

Provides a return value for a blocking function call with given scope.

open suspend override fun call(scope: MokkerySuspendCallScope): Nothing

By default, it throws runtime exception.

Link copied to clipboard
open suspend fun callSuspend(scope: FunctionScope): T

DEPRECATED: Use call with MokkerySuspendCallScope instead!

Link copied to clipboard
open override fun description(): String

Returns human-readable answer description. By default, it returns answers $this. It's used for debugging purposes.