(t *testing.T)
| 583 | } |
| 584 | |
| 585 | func 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 | |
| 591 | func TestLoadConfigFileWithComplicatedRegexp(t *testing.T) { |
| 592 | for filePath, k := range map[string]string{ |
nothing calls this directly
no test coverage detected