summaryrefslogtreecommitdiff
path: root/test/test_hover.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-07 12:34:45 +0100
committerw0rp <devw0rp@gmail.com>2020-08-07 12:34:45 +0100
commitf741245f11007819e81632e13690ebcf9b6c3f40 (patch)
tree7c805423128b0f01c0d5356e8cabedad41a715b4 /test/test_hover.vader
parent388049dbeaad58f95ee5fbf81fec1c62bbadaf8d (diff)
downloadale-f741245f11007819e81632e13690ebcf9b6c3f40.zip
Fix #3273 - Handle missing keys in hover information
Diffstat (limited to 'test/test_hover.vader')
-rw-r--r--test/test_hover.vader7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_hover.vader b/test/test_hover.vader
index 917694a2..8b4cf7bd 100644
--- a/test/test_hover.vader
+++ b/test/test_hover.vader
@@ -133,6 +133,12 @@ Execute(LSP hover responses with markup content should be handled):
AssertEqual ['markup'], g:echo_list
AssertEqual {}, ale#hover#GetMap()
+Execute(LSP hover responses with markup content missing values should be handled):
+ call HandleValidLSPResult({'contents': {'kind': 'something'}})
+
+ AssertEqual [], g:echo_list
+ AssertEqual {}, ale#hover#GetMap()
+
Execute(LSP hover response with lists of strings should be handled):
call HandleValidLSPResult({'contents': [
\ "foo\n",
@@ -145,6 +151,7 @@ Execute(LSP hover response with lists of strings should be handled):
Execute(LSP hover response with lists of strings and marked strings should be handled):
call HandleValidLSPResult({'contents': [
\ {'language': 'rust', 'value': 'foo'},
+ \ {'language': 'foobar'},
\ "bar\n",
\]})