#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:
w0rp
2023-09-16 22:23:30 +01:00
parent 4b11cf21dc
commit ae1d051504
98 changed files with 257 additions and 674 deletions
+7 -11
View File
@@ -12,21 +12,17 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'go', 'go vet .'
Execute(The default go vet command should be correct):
AssertLinter 'go', ale#Escape('go') . ' vet .'
AssertLinterCwd '%s:h'
Execute(Extra options should be supported):
Execute(The go vet command and options should be configurable):
let g:ale_go_go_executable = 'foobar'
let g:ale_go_govet_options = '--foo-bar'
AssertLinterCwd '%s:h'
AssertLinter 'go', 'go vet --foo-bar .'
Execute(The executable should be configurable):
let g:ale_go_go_executable = 'foobar'
AssertLinter 'foobar', 'foobar vet .'
AssertLinter 'foobar', ale#Escape('foobar') . ' vet --foo-bar .'
Execute(Go environment variables should be supported):
let b:ale_go_go111module = 'on'
AssertLinter 'go', ale#Env('GO111MODULE', 'on') . 'go vet .'
AssertLinter 'go', ale#Env('GO111MODULE', 'on') . ale#Escape('go') . ' vet .'