Package-level declarations
Types
Provides a set of operations available in non-suspendable mocked function context.
Provides a set of operations available in any mocked function context.
Base interface for all scopes that are based on MokkeryContext. Provides a set of operations that are available in all contexts.
A scope for a test suite that uses Mokkery mocks. It enables automation and strict exhaustiveness checks.
Provides a set of operations available in suspendable mocked function context.
Properties
Returns current call.
Returns all mocks from this MokkerySuiteScope.
Equivalent of this
in the scope of currently called function.
Functions
Calls original method implementation with given args.
Starts defining an answer for a single function call specified by block. Returned scope allows defining answer.
Just like every, but allows suspendable function call.
Provides mock implementation of T1 and T2. It is a child of given MokkerySuiteScope.
Provides mock implementation of T1, T2 and T3. It is a child of given MokkerySuiteScope.
Provides mock implementation of T1, T2, T3 and T4. It is a child of given MokkerySuiteScope.
Creates MokkerySuiteScope instance with given extra context.
Removes all answers configured for given mocks.
Clears call history for all given mocks.
Returns MokkeryCallScope.self as T.
Creates dev.mokkery.answering.FunctionScope from this MokkeryCallScope
Asserts that all given mocks have all their registered calls verified with verify or verifySuspend.
Asserts that all mocks from given MokkerySuiteScope have no unverified calls.
Just like verify, but allows suspendable function calls.
Just like verify, but allows suspendable function calls.