MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / TestRemoteBranchConfig

Function TestRemoteBranchConfig

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

Source from the content-addressed store, hash-verified

21}
22
23func 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
36func TestRemotePushDefault(t *testing.T) {
37 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