Documentation ¶
Overview ¶
Taken from GitHub CLI httpmock package MIT License - Copyright (c) 2019 GitHub Inc.
Taken from GitHub CLI httpmock package MIT License - Copyright (c) 2019 GitHub Inc.
Index ¶
- func MatchAny(*http.Request) bool
- func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error)
- type Matcher
- type Registry
- type Responder
- func FileResponse(filename string) Responder
- func JSONFromFile(filename string) Responder
- func JSONFromString(body string) Responder
- func JSONResponse(body interface{}) Responder
- func RESTPayload(responseStatus int, responseBody string, ...) Responder
- func StatusStringResponse(status int, body string) Responder
- func StringResponse(body string) Responder
- func WithHeader(responder Responder, header string, value string) Responder
- type Stub
- type Testing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Responder ¶
func FileResponse ¶
func JSONFromFile ¶
func JSONFromString ¶
func JSONResponse ¶
func JSONResponse(body interface{}) Responder
func RESTPayload ¶
func StatusStringResponse ¶
func StringResponse ¶
Click to show internal directories.
Click to hide internal directories.