Commit d7c77895 authored by James G. Kim's avatar James G. Kim

Add tests for only and except of post-processors

parent a5818b15
......@@ -174,6 +174,40 @@ func TestParse(t *testing.T) {
false,
},
{
"parse-pp-only.json",
&Template{
PostProcessors: [][]*PostProcessor{
[]*PostProcessor{
&PostProcessor{
Type: "foo",
OnlyExcept: OnlyExcept{
Only: []string{"bar"},
},
},
},
},
},
false,
},
{
"parse-pp-except.json",
&Template{
PostProcessors: [][]*PostProcessor{
[]*PostProcessor{
&PostProcessor{
Type: "foo",
OnlyExcept: OnlyExcept{
Except: []string{"bar"},
},
},
},
},
},
false,
},
{
"parse-pp-string.json",
&Template{
......
{
"post-processors": [
{
"type": "foo",
"except": ["bar"]
}
]
}
{
"post-processors": [
{
"type": "foo",
"only": ["bar"]
}
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment