Package-level declarations
Types
Properties
Returns the defining top-level extension function's Class.
Functions
Checks if all recorded calls are necessary.
Clears all regular, object, static and constructor mocks.
Removes all objects stored within the internal stubs collection.
Clears constructor mock.
Clears static mocks.
Clear static mocks.
Starts a block of stubbing for coroutines. Part of DSL. Similar to every, but works with suspend functions.
Exclude calls from recording for a suspend block
Stub block to never return. Part of DSL.
Stub block to return Unit result as a coroutine block. Part of DSL. Similar to justRun, but works with suspend functions.
Checks if all recorded calls were verified.
Verifies that all calls inside verifyBlock happened. Does not verify any order. Coroutine version
Verifies that calls and their count. Coroutine version
Verifies that all calls inside verifyBlock happened, checking that they happened in the order declared. Coroutine version.
Verifies that all calls inside verifyBlock happened, and no other call was made to those mocks. Coroutine version.
Starts a block of stubbing. Part of DSL.
Exclude calls from recording
Stub block to return Unit result. Part of DSL.
Builds a constructor mock. Old constructor mocks of same classes are cancelled before.
Builds a constructor mock and unmocks it after the block has been executed.
Builds an Object mock. Any mocks of this exact object are cancelled before it's mocked.
Builds a static mock and unmocks it after the block has been executed.
Builds a static mock. Old static mocks of same classes are cancelled before.
Builds a static mock. Any mocks of this exact class are cancelled before it's mocked
Builds a static mock and unmocks it after the block has been executed.
Builds a static mock. Any mocks of this function's declaring class are cancelled before it's mocked
Builds a static mock and unmocks it after the block has been executed.
Registers instance factory and returns object able to do deregistration.
Creates new capturing slot.
Builds a new spy for specified class. Initializes object via default constructor.
Builds a new spy for specified class, copying fields from objToCopy.
Cancels object, static and constructor mocks.
Cancel constructor mocks.
Cancel object mocks.
Cancel static mocks.
Cancel static mocks.
Verifies all the calls of the mocks specified inside verifyBlock. Once a mock is specified inside verifyBlock, all its recorded calls are expected to be verified within verifyBlock. Otherwise, the verification fails. Does not verify any order.
Verifies that calls and their count
Verifies that all calls inside verifyBlock happened, checking that they happened in the order declared.
Verifies that all calls inside verifyBlock happened, and no other call was made to those mocks