summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_perlcritic_handler.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/handler/test_perlcritic_handler.vader b/test/handler/test_perlcritic_handler.vader
new file mode 100644
index 00000000..f00b07da
--- /dev/null
+++ b/test/handler/test_perlcritic_handler.vader
@@ -0,0 +1,20 @@
+Before:
+ runtime ale_linters/perl/perlcritic.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The Perl::Critic handler should create all issues as warnings):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': '21',
+ \ 'col': '17',
+ \ 'text': 'Regular expression without "/m" flag',
+ \ 'type': 'W',
+ \ }
+ \ ],
+ \ ale_linters#perl#perlcritic#Handle(99, [
+ \ '21:17 Regular expression without "/m" flag'
+ \ ])
+