Package-level declarations

Types

Link copied to clipboard

It's invoked on each mocked function call.

Link copied to clipboard

Simplifies creation of MokkeryCallInterceptor that does not need to change the current pipeline and only gets notified on each call.

Link copied to clipboard
interface MokkeryHook<T>

Represents a point in the interceptors pipeline that allows registering interceptors of T.

Functions

Link copied to clipboard

Creates MokkeryCallListener that invokes block on each call.

Link copied to clipboard
fun MokkeryBlockingCallScope.nextIntercept(context: MokkeryContext = MokkeryContext.Empty): Any?
suspend fun MokkerySuspendCallScope.nextIntercept(context: MokkeryContext = MokkeryContext.Empty): Any?

Calls dev.mokkery.interceptor.MokkeryCallInterceptor.intercept on the next interceptor in the pipeline. Adds context to the next pipeline context.