Const

class Const<T>(val value: T) : Answer.Unified<T> (source)

Returns value on call.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

Functions

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

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): T

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

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.