summaryrefslogtreecommitdiff
path: root/test/handler/test_shell_handler.vader
blob: 2465f179e14fd22c9c933c48aea958d2f5fbe4fd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Before:
  runtime ale_linters/sh/shell.vim

After:
  call ale#linter#Reset()

Execute(The shell handler should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 13,
  \     'text': 'syntax error near unexpected token d',
  \   },
  \   {
  \     'lnum': 7,
  \     'text': 'line 42: line 36:',
  \   },
  \   {
  \     'lnum': 11,
  \     'text': 'Syntax error: "(" unexpected',
  \   },
  \   {
  \     'lnum': 95,
  \     'text': 'parse error near `out=$(( $1 / 1024. )...',
  \   },
  \   {
  \     'lnum': 22,
  \     'text': ':11: :33: :44:',
  \   },
  \   {
  \     'lnum': 9,
  \     'text': '`done'' unexpected',
  \   },
  \ ],
  \ ale_linters#sh#shell#Handle(347, [
  \   'bash: line 13: syntax error near unexpected token d',
  \   'bash: line 7: line 42: line 36:',
  \   'sh: 11: Syntax error: "(" unexpected',
  \   'qfm:95: parse error near `out=$(( $1 / 1024. )...',
  \   'qfm:22: :11: :33: :44:',
  \   'foo.sh: syntax error at line 9: `done'' unexpected',
  \ ])