Versions in this module Expand all Collapse all v0 v0.0.3 Jan 27, 2022 GO-2024-3295 GO-2024-3295: Violation of GitHub host security boundary when sourcing authentication token within a codespace in github.com/cli/go-gh v0.0.2 Jan 26, 2022 GO-2024-3295 GO-2024-3295: Violation of GitHub host security boundary when sourcing authentication token within a codespace in github.com/cli/go-gh v0.0.1 Nov 18, 2021 GO-2024-3295 GO-2024-3295: Violation of GitHub host security boundary when sourcing authentication token within a codespace in github.com/cli/go-gh Changes in this version + func MatchAny(*http.Request) bool + func ScopesResponder(scopes string) func(*http.Request) (*http.Response, error) + type Matcher func(req *http.Request) bool + func GQL(q string) Matcher + func REST(method, p string) Matcher + type Registry struct + Requests []*http.Request + func NewRegistry(t *testing.T) *Registry + func (r *Registry) Register(m Matcher, resp Responder) + func (r *Registry) RoundTrip(req *http.Request) (*http.Response, error) + func (r *Registry) Verify(t Testing) + type Responder func(req *http.Request) (*http.Response, error) + func FileResponse(filename string) Responder + func GQLMutation(body string, cb func(map[string]interface{})) Responder + func GQLQuery(body string, cb func(string, map[string]interface{})) 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 + type Stub struct + Matcher Matcher + Responder Responder + type Testing interface + Errorf func(string, ...interface{}) + Helper func()