| 962 | } |
| 963 | |
| 964 | type stubGitConfigClient struct { |
| 965 | readBranchConfigFn func(ctx context.Context, branchName string) (git.BranchConfig, error) |
| 966 | pushDefaultFn func(ctx context.Context) (git.PushDefault, error) |
| 967 | remotePushDefaultFn func(ctx context.Context) (string, error) |
| 968 | pushRevisionFn func(ctx context.Context, branchName string) (git.RemoteTrackingRef, error) |
| 969 | } |
| 970 | |
| 971 | func (s stubGitConfigClient) ReadBranchConfig(ctx context.Context, branchName string) (git.BranchConfig, error) { |
| 972 | if s.readBranchConfigFn == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected