MokkeryBlockingCallScope

Provides a set of operations available in non-suspendable mocked function context.

Properties

Link copied to clipboard

Returns current call.

Link copied to clipboard
Link copied to clipboard

Equivalent of this in the scope of currently called function.

Link copied to clipboard

Returns a map of available super calls for currently called function.

Functions

Link copied to clipboard

Calls original method implementation with given args.

Link copied to clipboard
fun MokkeryBlockingCallScope.callSuper(superType: KClass<*>, args: List<Any?>): Any?

Calls super method of superType with given args

Link copied to clipboard
fun MokkeryBlockingCallScope.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.