mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
#2395 - Handle empty output for redpen
This commit is contained in:
@@ -24,6 +24,9 @@ Execute(Vendor executables should be detected):
|
||||
|
||||
Execute(The project path should be correct for .git directories):
|
||||
call ale#test#SetFilename('psalm-project/test.php')
|
||||
call mkdir(g:dir . '/.git')
|
||||
|
||||
AssertLSPProject g:dir
|
||||
if !isdirectory(g:dir . '/.git')
|
||||
call mkdir(g:dir . '/.git')
|
||||
endif
|
||||
|
||||
AssertLSPProject g:dir
|
||||
|
||||
@@ -80,7 +80,7 @@ Execute(redpen handler should handle errors output):
|
||||
\ ']',
|
||||
\ ])
|
||||
|
||||
Execute(redpen handler should no error output):
|
||||
Execute(The redpen handler should handle an empty error list):
|
||||
AssertEqual
|
||||
\ [],
|
||||
\ ale#handlers#redpen#HandleRedpenOutput(bufnr(''), [
|
||||
@@ -91,3 +91,8 @@ Execute(redpen handler should no error output):
|
||||
\ ' }',
|
||||
\ ']',
|
||||
\ ])
|
||||
|
||||
Execute(The redpen handler should handle totally empty output):
|
||||
AssertEqual
|
||||
\ [],
|
||||
\ ale#handlers#redpen#HandleRedpenOutput(bufnr(''), [])
|
||||
|
||||
Reference in New Issue
Block a user