/ test / handler / test_solc_handler.vader
test_solc_handler.vader
 1  Before:
 2    runtime ale_linters/solidity/solc.vim
 3  
 4  After:
 5    call ale#linter#Reset()
 6  
 7  Execute(Check solc output parsing):
 8    AssertEqual
 9    \ [
10    \   {
11    \     'lnum': 40,
12    \     'col': 48,
13    \     'text': 'This declaration shadows an existing declaration.',
14    \     'type': 'W',
15    \   },
16    \   {
17    \     'lnum': 23,
18    \     'col': 16,
19    \     'text': 'Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
20    \     'type': 'E',
21    \   },
22    \ ],
23    \ ale_linters#solidity#solc#Handle(bufnr(''), [
24    \   'Warning: This declaration shadows an existing declaration.',
25    \   '  --> /path/to/file.sol:40:48:',
26    \   '   |',
27    \   '40 |   function decimals() external view returns (uint8 decimals);',
28    \   '   |                                              ^------------^',
29    \   'Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
30    \   '  --> /path/to/file.sol:23:16: ',
31    \   '   | ',
32    \   '23 |    return OneToN.getSinleSignature(signatures, i);',
33    \   '   |           ^----------------------^',
34    \ ])