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

Method StubRepoResponseWithPermission

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

Source from the content-addressed store, hash-verified

41}
42
43func (r *Registry) StubRepoResponseWithPermission(owner, repo, permission string) {
44 r.Register(GraphQL(`query RepositoryNetwork\b`), StringResponse(RepoNetworkStubResponse(owner, repo, "master", permission)))
45}
46
47func RepoNetworkStubResponse(owner, repo, defaultBranch, permission string) string {
48 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