/ test / handler / test_rflint_handler.vader
test_rflint_handler.vader
 1  Before:
 2    runtime ale_linters/robot/rflint.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(Warning and error messages should be handled correctly):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'bufnr': 1,
12    \     'filename': 'test.robot',
13    \     'type': 'W',
14    \     'lnum': 1,
15    \     'col': 2,
16    \     'text': 'RequireSuiteDocumentation',
17    \     'detail': 'No suite documentation',
18    \   },
19    \   {
20    \     'bufnr': 1,
21    \     'filename': 'test.robot',
22    \     'type': 'E',
23    \     'lnum': 3,
24    \     'col': 4,
25    \     'text': 'RequireTestDocumentation',
26    \     'detail': 'No testcase documentation',
27    \   },
28    \ ],
29    \ ale_linters#robot#rflint#Handle(1, [
30    \   'test.robot:W:1:2:RequireSuiteDocumentation:No suite documentation',
31    \   'test.robot:E:3:4:RequireTestDocumentation:No testcase documentation'
32    \])