summaryrefslogtreecommitdiff
path: root/test/handler/test_syntaxerl_handler.vader
blob: 95f2bfef5a650e23749fe835de3e7c300ec02872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  runtime ale_linters/erlang/syntaxerl.vim

After:
  call ale#linter#Reset()

Execute (Handle SyntaxErl output):
  AssertEqual
  \ [
  \   {
  \     'lnum': 42,
  \     'text': "syntax error before: ','",
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 42,
  \     'text': 'function foo/0 is unused',
  \     'type': 'W',
  \   },
  \ ],
  \ ale_linters#erlang#syntaxerl#Handle(bufnr(''), [
  \   "/tmp/v2wDixk/1/module.erl:42: syntax error before: ','",
  \   '/tmp/v2wDixk/2/module.erl:42: warning: function foo/0 is unused',
  \ ])