/ test / handler / test_xvhdl_handler.vader
test_xvhdl_handler.vader
 1  Before:
 2    runtime ale_linters/vhdl/xvhdl.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(The xvhdl handler should parse lines correctly):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'lnum': 17,
12    \     'type': 'E',
13    \     'text': '[VRFC 10-91] aresetn is not declared '
14    \   },
15    \   {
16    \     'lnum': 128,
17    \     'type': 'E',
18    \     'text': '[VRFC 10-91] m_axis_tx_tdata is not declared '
19    \   },
20    \ ],
21    \ ale_linters#vhdl#xvhdl#Handle(bufnr(''), [
22    \   'ERROR: [VRFC 10-91] aresetn is not declared [/path/to/file.vhd:17]',
23    \   'ERROR: [VRFC 10-91] m_axis_tx_tdata is not declared [/home/user/tx_data.vhd:128]',
24    \ ])