(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func TestRemoteBranchConfig(t *testing.T) { |
| 24 | cfg := NewFrom(Values{ |
| 25 | Git: map[string][]string{ |
| 26 | "branch.master.remote": []string{"a"}, |
| 27 | "branch.other.pushremote": []string{"b"}, |
| 28 | }, |
| 29 | }) |
| 30 | cfg.ref = &git.Ref{Name: "master"} |
| 31 | |
| 32 | assert.Equal(t, "a", cfg.Remote()) |
| 33 | assert.Equal(t, "a", cfg.PushRemote()) |
| 34 | } |
| 35 | |
| 36 | func TestRemotePushDefault(t *testing.T) { |
| 37 | cfg := NewFrom(Values{ |
nothing calls this directly
no test coverage detected