Debian Codegraph @

git/config_test.go

raw symbols SCIP
1 package git_test // to avoid import cycles
2
3 import (
4 "testing"
5
6 . "github.com/git-lfs/git-lfs/v3/git"
7 "github.com/stretchr/testify/assert"
8 )
9
10 func TestReadOnlyConfig(t *testing.T) {
11 cfg := NewReadOnlyConfig("", "")
12 _, err := cfg.SetLocal("lfs.this.should", "fail")
13 assert.Equal(t, err, ErrReadOnly)
14 }