Unified

interface Unified<T> : Answer<T> (source)

Convenience interface for answers with identical implementation for both blocking and suspending call.

Inheritors

Functions

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

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

abstract fun call(scope: MokkeryCallScope): T

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

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

Link copied to clipboard
open fun description(): String

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