Documentation
¶
Index ¶
- func Func[Fn any](patches *gomonkey.Patches, target Fn, replacement Fn) *gomonkey.Patches
- func Method[Receiver any, Fn any](patches *gomonkey.Patches, receiver Receiver, method Fn, replacement Fn) *gomonkey.Patches
- func NewPatches() *gomonkey.Patches
- func Var[Var any](patches *gomonkey.Patches, target *Var, replacement Var) *gomonkey.Patches
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Func ¶
func Func[Fn any](patches *gomonkey.Patches, target Fn, replacement Fn) *gomonkey.Patches
Func applies a function patch.
func Method ¶
func Method[Receiver any, Fn any](patches *gomonkey.Patches, receiver Receiver, method Fn, replacement Fn) *gomonkey.Patches
Method applies a method patch.
func NewPatches ¶
func NewPatches() *gomonkey.Patches
NewPatches returns a new Patches. Be sure to call `defer Patches.Reset()` on every `Patches`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.