summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_dart_analyze_handler.vader11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/handler/test_dart_analyze_handler.vader b/test/handler/test_dart_analyze_handler.vader
index b3f20fb8..f167582c 100644
--- a/test/handler/test_dart_analyze_handler.vader
+++ b/test/handler/test_dart_analyze_handler.vader
@@ -19,10 +19,17 @@ Execute(Basic problems should be parsed correctly):
\ 'lnum': 2,
\ 'col': 16,
\ },
+ \ {
+ \ 'type': 'I',
+ \ 'text': 'dead_code: Dead code. Try removing the code, or fixing the code before it so that it can be reached.',
+ \ 'lnum': 8,
+ \ 'col': 3,
+ \ },
\ ],
\ ale_linters#dart#dart_analyze#Handle(bufnr(''), [
\ 'Analyzing main.dart...',
\ ' error - main.dart:5:1 - Expected to find ''}'' - expected_token',
- \ ' warning - main.dart:2:16 - A value of type ''String'' can''t be assigned to a variable of type ''int'' - invalid_assignment',
- \ '1 error and 1 warning found.',
+ \ 'warning - main.dart:2:16 - A value of type ''String'' can''t be assigned to a variable of type ''int'' - invalid_assignment',
+ \ ' info - main.dart:8:3 - Dead code. Try removing the code, or fixing the code before it so that it can be reached. - dead_code',
+ \ '3 issues found.',
\ ])