MCPcopy
hub / github.com/cli/cli / stubBaseRepoFn

Function stubBaseRepoFn

pkg/cmd/pr/shared/finder_test.go:940–944  ·  view source on GitHub ↗
(baseRepo ghrepo.Interface, err error)

Source from the content-addressed store, hash-verified

938}
939
940func stubBaseRepoFn(baseRepo ghrepo.Interface, err error) func() (ghrepo.Interface, error) {
941 return func() (ghrepo.Interface, error) {
942 return baseRepo, err
943 }
944}
945
946func stubPushDefault(pushDefault git.PushDefault, err error) func(context.Context) (git.PushDefault, error) {
947 return func(_ context.Context) (git.PushDefault, error) {

Callers 1

TestFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected