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

Function stubPushRevision

pkg/cmd/pr/shared/finder_test.go:958–962  ·  view source on GitHub ↗
(parsedPushRevision git.RemoteTrackingRef, err error)

Source from the content-addressed store, hash-verified

956}
957
958func stubPushRevision(parsedPushRevision git.RemoteTrackingRef, err error) func(context.Context, string) (git.RemoteTrackingRef, error) {
959 return func(_ context.Context, _ string) (git.RemoteTrackingRef, error) {
960 return parsedPushRevision, err
961 }
962}
963
964type stubGitConfigClient struct {
965 readBranchConfigFn func(ctx context.Context, branchName string) (git.BranchConfig, error)

Callers 3

TestFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected