summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorAntoine Gagné <AntoineGagne@users.noreply.github.com>2019-05-19 16:16:17 -0400
committerw0rp <w0rp@users.noreply.github.com>2019-05-19 21:16:17 +0100
commit3b7c86e401eb488acd8713f7c9ee81344095080d (patch)
tree2eb2260f62c3529c2fb51998a4581fc9397878f6 /test/handler
parent652d991077ac3261e51abfa51d979774a555b405 (diff)
downloadale-3b7c86e401eb488acd8713f7c9ee81344095080d.zip
Add support for Erlang dialyzer (#2509)
* Add support for Erlang dialyzer * Add an option to specify rebar3 profile In doing so, the use of the `**` wildcard becomes unnecessary.
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_erlang_dialyzer_handler.vader27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/handler/test_erlang_dialyzer_handler.vader b/test/handler/test_erlang_dialyzer_handler.vader
new file mode 100644
index 00000000..afd5c597
--- /dev/null
+++ b/test/handler/test_erlang_dialyzer_handler.vader
@@ -0,0 +1,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(''), [''])