(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestRemoteBranchPushDefault(t *testing.T) { |
| 51 | cfg := NewFrom(Values{ |
| 52 | Git: map[string][]string{ |
| 53 | "branch.master.remote": []string{"a"}, |
| 54 | "remote.pushdefault": []string{"b"}, |
| 55 | "branch.master.pushremote": []string{"c"}, |
| 56 | }, |
| 57 | }) |
| 58 | cfg.ref = &git.Ref{Name: "master"} |
| 59 | |
| 60 | assert.Equal(t, "a", cfg.Remote()) |
| 61 | assert.Equal(t, "c", cfg.PushRemote()) |
| 62 | } |
| 63 | |
| 64 | func TestLFSDefault(t *testing.T) { |
| 65 | cfg := NewFrom(Values{ |
nothing calls this directly
no test coverage detected