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

Function TestReadOnlyConfig

git/config_test.go:10–14  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestReadOnlyConfig(t *testing.T) {
11 cfg := NewReadOnlyConfig("", "")
12 _, err := cfg.SetLocal("lfs.this.should", "fail")
13 assert.Equal(t, err, ErrReadOnly)
14}

Callers

nothing calls this directly

Calls 3

NewReadOnlyConfigFunction · 0.85
SetLocalMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected