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

Function TestLoadConfigFileWithUnencryptedSuffix

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

Source from the content-addressed store, hash-verified

658}
659
660func TestLoadConfigFileWithUnencryptedSuffix(t *testing.T) {
661 conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithSuffixParameters, t), "/conf/path", "foobar", nil)
662 assert.Nil(t, err)
663 assert.Equal(t, "_unencrypted", conf.UnencryptedSuffix)
664}
665
666func TestLoadConfigFileWithEncryptedSuffix(t *testing.T) {
667 conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithSuffixParameters, t), "/conf/path", "barfoo", nil)

Callers

nothing calls this directly

Calls 2

parseCreationRuleForFileFunction · 0.85
parseConfigFileFunction · 0.85

Tested by

no test coverage detected