Documentation ¶
Index ¶
- func ActivateHttpMock()
- func DeactivateHttpMock()
- func NewBytesResponder(status int, body []byte) httpmock.Responder
- func NewJsonResponse(status int, body interface{}) (*http.Response, error)
- func NewStringResponder(status int, body string) httpmock.Responder
- func NewStringResponse(status int, body string) *http.Response
- func Patch(target, replacement interface{}) *monkey.PatchGuard
- func PatchInstanceMethod(target reflect.Type, methodName string, replacement interface{}) *monkey.PatchGuard
- func RegisterHttpResponder(method string, url string, responder httpmock.Responder)
- func Unpatch(target interface{}) bool
- func UnpatchAll()
- func UnpatchInstanceMethod(target reflect.Type, methodName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateHttpMock ¶
func ActivateHttpMock()
func DeactivateHttpMock ¶
func DeactivateHttpMock()
func Patch ¶
func Patch(target, replacement interface{}) *monkey.PatchGuard
func PatchInstanceMethod ¶
func PatchInstanceMethod(target reflect.Type, methodName string, replacement interface{}) *monkey.PatchGuard
func RegisterHttpResponder ¶
func UnpatchAll ¶
func UnpatchAll()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.