MokkerySuspendCallScope

Provides a set of operations available in 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
suspend fun MokkerySuspendCallScope.callSuper(superType: KClass<*>, args: List<Any?>): Any?

Calls super method of superType with given args

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