MokkeryCallInterceptor

It's invoked on each mocked function call.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@DelicateMokkeryApi
abstract fun intercept(scope: MokkeryBlockingCallScope): Any?

Invoked on each regular mock call. To continue processing, call MokkeryBlockingCallScope.nextIntercept. The behavior following this call depends on the hook used.

@DelicateMokkeryApi
abstract suspend fun intercept(scope: MokkerySuspendCallScope): Any?

Invoked on each suspend mock call. To continue processing, call MokkerySuspendCallScope.nextIntercept. The behavior following this call depends on the hook used.