mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
Test fix.
This commit is contained in:
committed by
Dalius Dobravolskas
parent
c098a07d67
commit
17c0c3c731
@@ -111,7 +111,7 @@ Execute(An initial list of semantic errors should be handled):
|
|||||||
|
|
||||||
Assert g:ale_handle_loclist_called
|
Assert g:ale_handle_loclist_called
|
||||||
|
|
||||||
Execute(Subsequent empty lists should be ignored):
|
Execute(Subsequent empty lists should be ignored - semantic):
|
||||||
let g:ale_buffer_info[bufnr('')].semantic_loclist = []
|
let g:ale_buffer_info[bufnr('')].semantic_loclist = []
|
||||||
|
|
||||||
call ale#lsp_linter#HandleLSPResponse(1, CreateError('semanticDiag', ''))
|
call ale#lsp_linter#HandleLSPResponse(1, CreateError('semanticDiag', ''))
|
||||||
@@ -139,28 +139,28 @@ Execute(Non-empty then non-empty semantic errors should be handled):
|
|||||||
|
|
||||||
Assert g:ale_handle_loclist_called
|
Assert g:ale_handle_loclist_called
|
||||||
|
|
||||||
Execute(Subsequent empty lists should be ignored):
|
Execute(Subsequent empty lists should be ignored - suggestion):
|
||||||
let g:ale_buffer_info[bufnr('')].suggestion_loclist []
|
let g:ale_buffer_info[bufnr('')].suggestion_loclist = []
|
||||||
|
|
||||||
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', ''))
|
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', ''))
|
||||||
|
|
||||||
Assert !g:ale_handle_loclist_called
|
Assert !g:ale_handle_loclist_called
|
||||||
|
|
||||||
Execute(Empty then non-empty semantic errors should be handled):
|
Execute(Empty then non-empty suggestion messages should be handled):
|
||||||
let g:ale_buffer_info[bufnr('')].suggestion_loclist = []
|
let g:ale_buffer_info[bufnr('')].suggestion_loclist = []
|
||||||
|
|
||||||
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', 'x'))
|
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', 'x'))
|
||||||
|
|
||||||
Assert g:ale_handle_loclist_called
|
Assert g:ale_handle_loclist_called
|
||||||
|
|
||||||
Execute(Non-empty then empty semantic errors should be handled):
|
Execute(Non-empty then empt suggestion messages should be handled):
|
||||||
let g:ale_buffer_info[bufnr('')].suggestion_loclist = CreateLoclist('x')
|
let g:ale_buffer_info[bufnr('')].suggestion_loclist = CreateLoclist('x')
|
||||||
|
|
||||||
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', ''))
|
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', ''))
|
||||||
|
|
||||||
Assert g:ale_handle_loclist_called
|
Assert g:ale_handle_loclist_called
|
||||||
|
|
||||||
Execute(Non-empty then non-empty semantic errors should be handled):
|
Execute(Non-empty then non-empty suggestion messages should be handled):
|
||||||
let g:ale_buffer_info[bufnr('')].suggestion_loclist = CreateLoclist('x')
|
let g:ale_buffer_info[bufnr('')].suggestion_loclist = CreateLoclist('x')
|
||||||
|
|
||||||
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', 'x'))
|
call ale#lsp_linter#HandleLSPResponse(1, CreateError('suggestionDiag', 'x'))
|
||||||
|
|||||||
Reference in New Issue
Block a user