Mock KDsl
DSL entry points.
Functions
Checks if all recorded calls are necessary.
Starts a block of stubbing for coroutines. Part of DSL.
Exclude calls from recording for a suspend block
Checks if all recorded calls were verified.
Declares constructor mockk. Deprecated
Verify for coroutines
Shortcut for all calls verification
Shortcut for ordered calls verification
Shortcut for sequence calls verification
Starts a block of stubbing. Part of DSL.
Exclude calls from recording
Constructor mockk
Object mockk
Static mockk
Declares object mockk. Deprecated
Registers instance factory and returns object able to do deregistration.
Creates new capturing slot
Builds a new spy for specified class. Copies fields from provided object
Builds a new spy for specified class. Initializes object via default constructor.
Declares static mockk. Deprecated
Unmockk everything
Cancel constructor mocks.
Cancel object mocks.
Cancel static mocks.
Verifies calls happened in the past. Part of DSL
Shortcut for all calls verification
Shortcut for ordered calls verification
Shortcut for sequence calls verification