MCPcopy Index your code
hub / github.com/cli/cli / stubBranchConfig

Function stubBranchConfig

pkg/cmd/pr/shared/finder_test.go:928–932  ·  view source on GitHub ↗
(branchConfig git.BranchConfig, err error)

Source from the content-addressed store, hash-verified

926}
927
928func stubBranchConfig(branchConfig git.BranchConfig, err error) func(context.Context, string) (git.BranchConfig, error) {
929 return func(_ context.Context, branch string) (git.BranchConfig, error) {
930 return branchConfig, err
931 }
932}
933
934func stubRemotes(remotes ghContext.Remotes, err error) func() (ghContext.Remotes, error) {
935 return func() (ghContext.Remotes, error) {

Callers 3

TestFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected