mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-25 05:21:08 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -24,7 +24,7 @@ Execute(should configure gopls callback executable):
|
||||
AssertLinter 'boo', ale#Escape('boo')
|
||||
|
||||
Execute(should set gopls options):
|
||||
call ale#test#SetFilename('go_paths/go1/prj1/file.go')
|
||||
call ale#test#SetFilename('../test-files/go/go1/prj1/file.go')
|
||||
" let b:ale_completion_enabled = 1
|
||||
let b:ale_go_gopls_options = ''
|
||||
|
||||
@@ -46,9 +46,9 @@ Execute(should support go environment variables):
|
||||
\ ale#Env('GO111MODULE', 'off') . ale#Escape('gopls') . ' --mode stdio'
|
||||
|
||||
Execute(Should return directory for 'go.mod' if found in parent directory):
|
||||
call ale#test#SetFilename('../go_files/test.go')
|
||||
call ale#test#SetFilename('../test-files/go/test.go')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../go_files')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/go')
|
||||
|
||||
Execute(Should return nearest directory with '.git' if found in parent directory):
|
||||
call ale#test#SetFilename('test.go')
|
||||
@@ -60,7 +60,7 @@ Execute(Should return nearest directory with '.git' if found in parent directory
|
||||
AssertLSPProject g:dir
|
||||
|
||||
Execute(Should ignore 'go.mod' and return '.git' dir if modules off):
|
||||
call ale#test#SetFilename('../go_files/test.go')
|
||||
call ale#test#SetFilename('../test-files/go/test.go')
|
||||
|
||||
let b:ale_go_go111module = 'off'
|
||||
let b:parent_dir = ale#path#Simplify(g:dir . '/..')
|
||||
|
||||
Reference in New Issue
Block a user