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
Types ¶
type Interceptor ¶
type Interceptor func(ctx context.Context, fn *core.FuncInfo, args core.Object, results core.Object) error
func GetInterceptors ¶
func GetInterceptors() []Interceptor
Click to show internal directories.
Click to hide internal directories.