Documentation ¶
Index ¶
- func MatchAny(*http.Request) bool
- func RepoNetworkStubResponse(owner, repo, defaultBranch, permission string) string
- func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error)
- type Matcher
- type Registry
- func (r *Registry) Register(m Matcher, resp Responder)
- func (r *Registry) RoundTrip(req *http.Request) (*http.Response, error)
- func (r *Registry) StubRepoInfoResponse(owner, repo, branch string)
- func (r *Registry) StubRepoResponse(owner, repo string)
- func (r *Registry) StubRepoResponseWithPermission(owner, repo, permission string)
- func (r *Registry) Verify(t Testing)
- type Responder
- func FileResponse(filename string) Responder
- func GraphQLMutation(body string, cb func(map[string]interface{})) Responder
- func GraphQLQuery(body string, cb func(string, map[string]interface{})) Responder
- func JSONResponse(body interface{}) Responder
- func StatusStringResponse(status int, body string) Responder
- func StringResponse(body string) Responder
- type Stub
- type Testing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepoNetworkStubResponse ¶
Types ¶
type Registry ¶
func (*Registry) StubRepoInfoResponse ¶
func (*Registry) StubRepoResponse ¶
func (*Registry) StubRepoResponseWithPermission ¶
type Responder ¶
func FileResponse ¶
func GraphQLMutation ¶
func GraphQLQuery ¶
func JSONResponse ¶
func JSONResponse(body interface{}) Responder
func StatusStringResponse ¶
func StringResponse ¶
Click to show internal directories.
Click to hide internal directories.