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

Function TestLoadConfigFileWithInvalidComplicatedRegexp

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

Source from the content-addressed store, hash-verified

583}
584
585func TestLoadConfigFileWithInvalidComplicatedRegexp(t *testing.T) {
586 conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithInvalidComplicatedRegexp, t), "/conf/path", "stage/prod/api.yml", nil)
587 assert.Equal(t, "can not compile regexp: error parsing regexp: invalid escape sequence: `\\K`", err.Error())
588 assert.Nil(t, conf)
589}
590
591func TestLoadConfigFileWithComplicatedRegexp(t *testing.T) {
592 for filePath, k := range map[string]string{

Callers

nothing calls this directly

Calls 3

parseCreationRuleForFileFunction · 0.85
parseConfigFileFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected