Package-level declarations

Types

Link copied to clipboard
interface Awaitable<out T>

Represents an operation that can be awaited during a mocked function call. Result of this operation is returned by the mocked function call.

Functions

Link copied to clipboard
infix fun <T> SuspendAnsweringScope<T>.awaits(awaitable: Awaitable<T>)

Function call awaits for specified awaitable.

infix fun <T> SuspendAnsweringScope<T>.awaits(provider: SuspendCallDefinitionScope<T>.(CallArgs) -> Deferred<T>)

Function call awaits on each call for a Deferred provided by provider.

infix fun <T> SuspendAnsweringScope<T>.awaits(deferred: Deferred<T>)

Function call awaits for deferred.