intercept

@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.

For information on available hooks and their effects, refer to MokkeryCallInterceptor.Companion.


@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.

For information on available hooks and their effects, refer to MokkeryCallInterceptor.Companion.