summaryrefslogtreecommitdiff
path: root/test/handler/test_rflint_handler.vader
blob: f2670141b85d7e0976089ce08dc63726150efe30 (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
Before:
  runtime ale_linters/robot/rflint.vim

After:
  call ale#linter#Reset()

Execute(Warning and error messages should be handled correctly):
  AssertEqual
  \ [
  \   {
  \     'bufnr': 1,
  \     'filename': 'test.robot',
  \     'type': 'W',
  \     'lnum': 1,
  \     'col': 2,
  \     'text': 'RequireSuiteDocumentation',
  \     'detail': 'No suite documentation',
  \   },
  \   {
  \     'bufnr': 1,
  \     'filename': 'test.robot',
  \     'type': 'E',
  \     'lnum': 3,
  \     'col': 4,
  \     'text': 'RequireTestDocumentation',
  \     'detail': 'No testcase documentation',
  \   },
  \ ],
  \ ale_linters#robot#rflint#Handle(1, [
  \   'test.robot:W:1:2:RequireSuiteDocumentation:No suite documentation',
  \   'test.robot:E:3:4:RequireTestDocumentation:No testcase documentation'
  \])