summaryrefslogtreecommitdiff
path: root/test/handler/test_erlang_dialyzer_handler.vader
blob: afd5c5977b20c13df3e6be1efdfd11d36e2a4ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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'])

Execute(The dialyzer handler should handle empty file.):
  AssertEqual
  \[],
  \ ale_linters#erlang#dialyzer#Handle(bufnr(''), [])

Execute(The dialyzer handler should handle empty lines.):
  AssertEqual
  \[],
  \ ale_linters#erlang#dialyzer#Handle(bufnr(''), [''])