/ test / handler / test_sqllint_handler.vader
test_sqllint_handler.vader
 1  Before:
 2      " Load the file which defines the linter.
 3    runtime ale_linters/sql/sqllint.vim
 4  
 5  After:
 6      " Unload all linters again.
 7    call ale#linter#Reset()
 8  
 9  Execute (The output should be correct):
10  
11    " Test that the right loclist items are parsed from the handler.
12    AssertEqual
13    \ [
14    \   {
15    \     'lnum': 1,
16    \     'col': 0,
17    \     'type': '',
18    \     'text': 'stdin:1 [ER_NO_DB_ERROR] No database selected'
19    \   },
20    \ ],
21    \ ale_linters#sql#sqllint#Handle(bufnr(''), [
22    \  'stdin:1 [ER_NO_DB_ERROR] No database selected'
23    \ ])