diff options
author | RyanSquared <vandor2012@gmail.com> | 2020-05-05 09:21:49 -0500 |
---|---|---|
committer | RyanSquared <vandor2012@gmail.com> | 2020-05-05 09:21:49 -0500 |
commit | 70005134e5b2d40d176ee5b851ac64a296b22201 (patch) | |
tree | 097c07a596e3c6641ab65fef9e2cdc46151c1d07 /test/command_callback | |
parent | 36e5337e30095afb10d02ef2ae362c8d6055e70d (diff) | |
parent | 6087765cad9271a54d3a29c0c0e6582332461451 (diff) | |
download | ale-70005134e5b2d40d176ee5b851ac64a296b22201.zip |
Merge branch 'rust-analyzer' of https://github.com/jonhoo/ale into jonhoo-rust-analyzer
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_rust_analyzer_callbacks.vader | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command_callback/test_rust_analyzer_callbacks.vader b/test/command_callback/test_rust_analyzer_callbacks.vader new file mode 100644 index 00000000..95866076 --- /dev/null +++ b/test/command_callback/test_rust_analyzer_callbacks.vader @@ -0,0 +1,20 @@ +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): + AssertLSPProject '' + + call ale#test#SetFilename('rust-rls-project/test.rs') + + AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project') + +Execute(Should accept configuration settings): + AssertLSPConfig {} + let b:ale_rust_analyzer_config = {'rust': {'clippy_preference': 'on'}} + AssertLSPConfig {'rust': {'clippy_preference': 'on'}} |