MCPcopy Create free account
hub / github.com/cli/cli / StubRepoResponseWithPermission

Method StubRepoResponseWithPermission

pkg/httpmock/legacy.go:50–52  ·  view source on GitHub ↗
(owner, repo, permission string)

Source from the content-addressed store, hash-verified

48}
49
50func (r *Registry) StubRepoResponseWithPermission(owner, repo, permission string) {
51 r.Register(GraphQL(`query RepositoryNetwork\b`), StringResponse(RepoNetworkStubResponse(owner, repo, "master", permission)))
52}
53
54func RepoNetworkStubResponse(owner, repo, defaultBranch, permission string) string {
55 return fmt.Sprintf(`

Callers 1

StubRepoResponseMethod · 0.95

Calls 4

RegisterMethod · 0.95
GraphQLFunction · 0.85
StringResponseFunction · 0.85
RepoNetworkStubResponseFunction · 0.85

Tested by

no test coverage detected