MCPcopy
hub / github.com/git-lfs/git-lfs / TestRemoteBranchPushDefault

Function TestRemoteBranchPushDefault

config/config_test.go:50–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func 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
64func TestLFSDefault(t *testing.T) {
65 cfg := NewFrom(Values{

Callers

nothing calls this directly

Calls 4

NewFromFunction · 0.85
PushRemoteMethod · 0.80
RemoteMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected