MCPcopy
hub / github.com/getsops/sops / TestLoadConfigFileWithEncryptedSuffix

Function TestLoadConfigFileWithEncryptedSuffix

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

Source from the content-addressed store, hash-verified

664}
665
666func TestLoadConfigFileWithEncryptedSuffix(t *testing.T) {
667 conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithSuffixParameters, t), "/conf/path", "barfoo", nil)
668 assert.Nil(t, err)
669 assert.Equal(t, "_enc", conf.EncryptedSuffix)
670}
671
672func TestLoadConfigFileWithUnencryptedRegex(t *testing.T) {
673 conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithUnencryptedRegexParameters, t), "/conf/path", "barbar", nil)

Callers

nothing calls this directly

Calls 2

parseCreationRuleForFileFunction · 0.85
parseConfigFileFunction · 0.85

Tested by

no test coverage detected