MCPcopy Index your code
hub / github.com/getsops/sops / TestFindConfigFileCurrentDir

Function TestFindConfigFileCurrentDir

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

Source from the content-addressed store, hash-verified

32}
33
34func TestFindConfigFileCurrentDir(t *testing.T) {
35 expectedPath := path.Clean(".sops.yaml")
36 fs = mockFS{stat: func(name string) (os.FileInfo, error) {
37 if name == expectedPath {
38 return nil, nil
39 }
40 return nil, &os.PathError{}
41 }}
42 filepath, err := FindConfigFile(".")
43 assert.Nil(t, err)
44 assert.Equal(t, expectedPath, filepath)
45}
46
47var sampleConfig = []byte(`
48creation_rules:

Callers

nothing calls this directly

Calls 1

FindConfigFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…