 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func MatchAny(*http.Request) bool
- func RepoNetworkStubForkResponse(forkFullName, parentFullName string) string
- func RepoNetworkStubResponse(owner, repo, defaultBranch, permission string) string
- 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) StubForkedRepoResponse(ownRepo, parentRepo string)
- func (r *Registry) StubRepoResponse(owner, repo string)
- func (r *Registry) StubRepoResponseWithDefaultBranch(owner, repo, defaultBranch string)
- func (r *Registry) StubRepoResponseWithPermission(owner, repo, permission string)
- func (r *Registry) StubResponse(status int, body io.Reader)
- func (r *Registry) StubWithFixture(status int, fixtureFileName string) func()
- func (r *Registry) StubWithFixturePath(status int, fixturePath string) func()
- 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) StubForkedRepoResponse ¶
func (*Registry) StubRepoResponse ¶
func (*Registry) StubRepoResponseWithDefaultBranch ¶
func (*Registry) StubRepoResponseWithPermission ¶
func (*Registry) StubWithFixture ¶
func (*Registry) StubWithFixturePath ¶ added in v0.11.1
type Responder ¶
func FileResponse ¶ added in v0.11.0
func GraphQLMutation ¶
func GraphQLQuery ¶ added in v0.9.0
func JSONResponse ¶
func JSONResponse(body interface{}) Responder
    func StatusStringResponse ¶ added in v0.11.0
func StringResponse ¶
 Click to show internal directories. 
   Click to hide internal directories.