MokkeryCallHooks
Provides access to hooks that allow registering custom MokkeryCallInterceptors in the call pipeline.
Hooks are arbitrarily scoped. Currently, there are 3 scopes to register call interceptors:
Global - MokkeryScope.global
Suite-level dev.mokkery.MokkerySuiteScope
Instance-level MokkeryScope.from
Interceptors registered in a broader scope (e.g. global one) affect narrower scopes (e.g. instance-level one).
Properties
Link copied to clipboard
Allows registering interceptors after a call is traced but before an answer is provided. nextIntercept returns value from defined answers or a fallback depending on a mock mode.
Link copied to clipboard
Allows registering interceptors before a call is traced. nextIntercept traces current call.
Link copied to clipboard