mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
0f55d371e9
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('rust', 'analyzer')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'rust-analyzer', ale#Escape('rust-analyzer')
|
|
|
|
Execute(The project root should be detected correctly in cargo projects):
|
|
call ale#test#SetFilename('../test-files/rust/cargo/testfile.rs')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust/cargo')
|
|
|
|
Execute(The project root should be detected correctly in non-cargo projects):
|
|
call ale#test#SetFilename('../test-files/rust/rust-project/testfile.rs')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/rust/rust-project')
|
|
|
|
Execute(The project root should be empty when no project files can be detected):
|
|
call ale#test#SetFilename('../test-files/dummy')
|
|
|
|
AssertLSPProject ''
|
|
|
|
Execute(Should accept configuration settings):
|
|
AssertLSPConfig {}
|
|
let b:ale_rust_analyzer_config = {'diagnostics': {'disabled': ['unresolved-import']}}
|
|
AssertLSPOptions {'diagnostics': {'disabled': ['unresolved-import']}}
|