MCPcopy Index your code
hub / github.com/github/github-mcp-server / newRepoAccessHTTPClient

Function newRepoAccessHTTPClient

pkg/github/issues_test.go:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func newRepoAccessHTTPClient() *http.Client {
44 responses := map[repoAccessKey]repoAccessValue{
45 {owner: "owner2", repo: "repo2"}: {isPrivate: true},
46 {owner: "owner", repo: "repo"}: {isPrivate: false},
47 }
48
49 return &http.Client{Transport: &repoAccessMockTransport{responses: responses}}
50}
51
52func (rt *repoAccessMockTransport) RoundTrip(req *http.Request) (*http.Response, error) {
53 if req.Body == nil {

Callers 2

stubRepoAccessCacheFunction · 0.85
issues_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected