summaryrefslogtreecommitdiff
path: root/test/handler/test_puppet_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_puppet_handler.vader')
-rw-r--r--test/handler/test_puppet_handler.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/handler/test_puppet_handler.vader b/test/handler/test_puppet_handler.vader
index e03cd42d..03adc9f0 100644
--- a/test/handler/test_puppet_handler.vader
+++ b/test/handler/test_puppet_handler.vader
@@ -63,3 +63,15 @@ Execute(The puppet handler should correctly parse errors that are reported befor
\ ale_linters#puppet#puppet#Handle(255, [
\ "Error: Illegal attempt to assign to 'a Name'. Not an assignable reference (file: /tmp/modules/waffles/manifests/syrup.pp, line: 5, column: 11)",
\ ])
+Execute(The puppet handler should parse lines when end of input is the location):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 0,
+ \ 'col': 0,
+ \ 'text': "Syntax error at end of input"
+ \ },
+ \ ],
+ \ ale_linters#puppet#puppet#Handle(255, [
+ \ "Error: Could not parse for environment production: Syntax error at end of input (file: /tmp//modules/test/manifests/init.pp)",
+ \ ])