INNER CODE UNIT · Go
TestParseConfig
open-policy-agent/conftest · builtins/parse_config_test.go:13
func TestParseConfig(t *testing.T) {
testCases := []struct {
desc string
parser string
config string
wantErrMsg string
}{
{
desc: "No parser supplied",
wantErrMsg: "create config parser",
},
{
desc: "Invalid parser supplied",
parser: "no-such-parser",
wantErrMsg: "create config parser",
},
{
desc: "Invalid YAML",