Documentation
¶
Index ¶
- func Reset(patche *Patches)
- func ResetAll(patches []*Patches)
- type OutputCell
- type Params
- type Patches
- func ApplyFunc(target, double interface{}) *Patches
- func ApplyFuncReturn(target interface{}, output ...interface{}) *Patches
- func ApplyFuncSeq(target interface{}, outputs []OutputCell) *Patches
- func ApplyFuncVar(target, double interface{}) *Patches
- func ApplyFuncVarReturn(target interface{}, output ...interface{}) *Patches
- func ApplyFuncVarSeq(target interface{}, outputs []OutputCell) *Patches
- func ApplyGlobalVar(target, double interface{}) *Patches
- func ApplyMethod(target interface{}, methodName string, double interface{}) *Patches
- func ApplyMethodFunc(target interface{}, methodName string, doubleFunc interface{}) *Patches
- func ApplyMethodReturn(target interface{}, methodName string, output ...interface{}) *Patches
- func ApplyMethodSeq(target interface{}, methodName string, outputs []OutputCell) *Patches
- func ApplyPrivateMethod(target interface{}, methodName string, double interface{}) *Patches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OutputCell ¶
type OutputCell = gomonkey.OutputCell
OutputCell is an alias for gomonkey.OutputCell
type Patches ¶
Patches is an alias for gomonkey.Patches
func ApplyFunc ¶
func ApplyFunc(target, double interface{}) *Patches
ApplyFunc applies a mock to a function target: the function to be mocked double: the mock implementation Returns: a Patches instance for cleanup
func ApplyFuncReturn ¶
func ApplyFuncReturn(target interface{}, output ...interface{}) *Patches
ApplyFuncReturn applies a mock to a function with specified return values target: the function to be mocked output: the values to be returned Returns: a Patches instance for cleanup
func ApplyFuncSeq ¶
func ApplyFuncSeq(target interface{}, outputs []OutputCell) *Patches
ApplyFuncSeq applies a mock to a function with a sequence of outputs target: the function to be mocked outputs: sequence of output values Returns: a Patches instance for cleanup
func ApplyFuncVar ¶
func ApplyFuncVar(target, double interface{}) *Patches
ApplyFuncVar applies a mock to a variable function target: the variable function to be mocked double: the mock implementation Returns: a Patches instance for cleanup
func ApplyFuncVarReturn ¶
func ApplyFuncVarReturn(target interface{}, output ...interface{}) *Patches
ApplyFuncVarReturn applies a mock to a variable function with specified return values target: the variable function to be mocked output: the values to be returned Returns: a Patches instance for cleanup
func ApplyFuncVarSeq ¶
func ApplyFuncVarSeq(target interface{}, outputs []OutputCell) *Patches
ApplyFuncVarSeq applies a mock to a variable function with a sequence of outputs target: the variable function to be mocked outputs: sequence of output values Returns: a Patches instance for cleanup
func ApplyGlobalVar ¶
func ApplyGlobalVar(target, double interface{}) *Patches
ApplyGlobalVar applies a mock to a global variable target: the global variable to be mocked double: the mock value Returns: a Patches instance for cleanup
func ApplyMethod ¶
ApplyMethod applies a mock to a method target: the target type methodName: name of the method to be mocked double: the mock implementation Returns: a Patches instance for cleanup
func ApplyMethodFunc ¶
ApplyMethodFunc applies a mock function to a method target: the target type methodName: name of the method to be mocked doubleFunc: the mock function Returns: a Patches instance for cleanup
func ApplyMethodReturn ¶
ApplyMethodReturn applies a mock to a method with specified return values target: the target type methodName: name of the method to be mocked output: the values to be returned Returns: a Patches instance for cleanup
func ApplyMethodSeq ¶
func ApplyMethodSeq(target interface{}, methodName string, outputs []OutputCell) *Patches
ApplyMethodSeq applies a mock to a method with a sequence of outputs target: the target type methodName: name of the method to be mocked outputs: sequence of output values Returns: a Patches instance for cleanup
func ApplyPrivateMethod ¶
ApplyPrivateMethod applies a mock to a private method target: the target type methodName: name of the private method to be mocked double: the mock implementation Returns: a Patches instance for cleanup