mock

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCallOld = errors.New("mock: call old")

Functions

func AddFuncInterceptor

func AddFuncInterceptor(fn interface{}, interceptor Interceptor)

TODO: ensure them run in last? no abort, run mocks mocks are special in that they on run in pre stage

func CallOld

func CallOld()

Types

type Interceptor

type Interceptor func(ctx context.Context, fn *core.FuncInfo, args core.Object, results core.Object) error

func GetInterceptors

func GetInterceptors() []Interceptor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL