2019-05-19 20:16:17 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/erlang/dialyzer.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(The dialyzer handler should handle error messages.):
|
|
|
|
AssertEqual
|
|
|
|
\[
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 3,
|
|
|
|
\ 'lcol': 0,
|
|
|
|
\ 'text': 'Callback info about the provider behaviour is not available',
|
|
|
|
\ 'type': 'W'
|
|
|
|
\ }
|
|
|
|
\],
|
|
|
|
\ ale_linters#erlang#dialyzer#Handle(bufnr(''), ['erl_tidy_prv_fmt.erl:3: Callback info about the provider behaviour is not available'])
|
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The dialyzer handler should handle empty input):
|
|
|
|
AssertEqual [], ale_linters#erlang#dialyzer#Handle(bufnr(''), [])
|
|
|
|
AssertEqual [], ale_linters#erlang#dialyzer#Handle(bufnr(''), [''])
|