MCPcopy
hub / github.com/cli/cli / stubRemotePushDefault

Function stubRemotePushDefault

pkg/cmd/pr/shared/finder_test.go:952–956  ·  view source on GitHub ↗
(remotePushDefault string, err error)

Source from the content-addressed store, hash-verified

950}
951
952func stubRemotePushDefault(remotePushDefault string, err error) func(context.Context) (string, error) {
953 return func(_ context.Context) (string, error) {
954 return remotePushDefault, err
955 }
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) {

Callers 3

TestFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected