Autofill

object Autofill : Answer<Any?>

Used whenever there is no defined answer for a call to mock that is in dev.mokkery.MockMode.autofill. Refer to AutofillProvider.forMockMode to read more about returned values.

Functions

Link copied to clipboard
open override fun call(scope: FunctionScope): Any?

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

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

Just like call but suspends. By default, it calls call.

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.