MCPcopy
hub / github.com/cli/cli / stubRemoteToRepoResolver

Function stubRemoteToRepoResolver

pkg/cmd/pr/shared/find_refs_resolution_test.go:498–502  ·  view source on GitHub ↗
(remotes ghContext.Remotes, err error)

Source from the content-addressed store, hash-verified

496}
497
498func stubRemoteToRepoResolver(remotes ghContext.Remotes, err error) remoteToRepoResolver {
499 return NewRemoteToRepoResolver(func() (ghContext.Remotes, error) {
500 return remotes, err
501 })
502}
503
504func mustParseQualifiedHeadRef(ref string) QualifiedHeadRef {
505 parsed, err := ParseQualifiedHeadRef(ref)

Callers 1

Calls 1

NewRemoteToRepoResolverFunction · 0.85

Tested by

no test coverage detected