aboutsummaryrefslogtreecommitdiffstats
path: root/executor/style_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'executor/style_test.go')
-rw-r--r--executor/style_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/style_test.go b/executor/style_test.go
index f6f5856f3..3b0ee8ce7 100644
--- a/executor/style_test.go
+++ b/executor/style_test.go
@@ -110,6 +110,13 @@ if (foo)
`,
},
},
+ {
+ pattern: `\s*(fail|exitf)\(".*\\n`,
+ message: "Don't use \\n in fail/exitf messages",
+ tests: []string{
+ `fail("some message with new line\n");`,
+ },
+ },
}
for _, check := range checks {
re := regexp.MustCompile(check.pattern)