mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-18 14:29:50 +08:00
#4454 Clean up more tests and code
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
This commit is contained in:
@@ -15,27 +15,14 @@ After:
|
||||
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(should set correct defaults):
|
||||
Execute(The default bingo executable and options should be correct):
|
||||
AssertLinter 'bingo', ale#Escape('bingo') . ' --mode stdio'
|
||||
|
||||
Execute(should configure bingo callback executable):
|
||||
Execute(The bingo executable and options should be configurable):
|
||||
let b:ale_go_bingo_executable = 'boo'
|
||||
let b:ale_go_bingo_options = ''
|
||||
|
||||
AssertLinter 'boo', ale#Escape('boo')
|
||||
|
||||
Execute(should set bingo options):
|
||||
call ale#test#SetFilename('../test-files/go/go1/prj1/file.go')
|
||||
" let b:ale_completion_enabled = 1
|
||||
let b:ale_go_bingo_options = ''
|
||||
|
||||
AssertLinter 'bingo',
|
||||
\ ale#Escape('bingo') . ''
|
||||
|
||||
let b:ale_go_bingo_options = '--mode stdio --trace'
|
||||
|
||||
AssertLinter 'bingo',
|
||||
\ ale#Escape('bingo') . ' --mode stdio --trace'
|
||||
AssertLinter 'boo', ale#Escape('boo') . ' --mode stdio --trace'
|
||||
|
||||
Execute(should support Go environment variables):
|
||||
call ale#test#SetFilename('../test-files/go/go1/prj1/file.go')
|
||||
@@ -44,7 +31,6 @@ Execute(should support Go environment variables):
|
||||
AssertLinter 'bingo',
|
||||
\ ale#Env('GO111MODULE', 'on') . ale#Escape('bingo') . ' --mode stdio'
|
||||
|
||||
|
||||
Execute(Should return directory for 'go.mod' if found in parent directory):
|
||||
call ale#test#SetFilename('../test-files/go/test.go')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user