mw/auto: increate setup coverage
Fixes
@@ -31,6 +31,7 @@ func TestAutoParse(t *testing.T) {
{
`auto {
directory /tmp
+ no_reload
}`,
false, "/tmp", "${1}", `db\.(.*)`, nil,
},
@@ -40,6 +41,12 @@ func TestAutoParse(t *testing.T) {
}`,
false, "/tmp", "bliep", `(.*)`, nil,
},
+ {
+ `auto {
+ directory /tmp (.*) bliep 10
+ }`,
+ false, "/tmp", "bliep", `(.*)`, nil,
+ },
{
`auto {
directory /tmp (.*) bliep
@@ -62,6 +69,24 @@ func TestAutoParse(t *testing.T) {
}`,
true, "", "${1}", ``, nil,
},
+ {
+ `auto example.org {
+ directory /tmp * {1} aa
+ }`,
+ true, "", "${1}", ``, nil,
+ },
+ {
+ `auto example.org {
+ directory /tmp .* {1}
+ }`,
+ true, "", "${1}", ``, nil,
+ },
+ {
+ `auto example.org {
+ directory /tmp .* {1}
+ }`,
+ true, "", "${1}", ``, nil,
+ },
{
`auto example.org {
directory /tmp .* {1}
