diff options
author | Ye Jingchen <ye.jingchen@gmail.com> | 2018-09-26 22:50:43 +0800 |
---|---|---|
committer | Ye Jingchen <ye.jingchen@gmail.com> | 2018-09-26 22:50:43 +0800 |
commit | 626e47f5c9c3c86fef56020bedae996e8b026a9f (patch) | |
tree | 6a4de28361f6bf3e6e2f5a76fee881cafef2d7e0 /test/command_callback/test_objc_ccls_command_callbacks.vader | |
parent | 56658fd3ada284a373afffb49b0ec2d66ad00445 (diff) | |
download | ale-626e47f5c9c3c86fef56020bedae996e8b026a9f.zip |
Add ccls tests
Diffstat (limited to 'test/command_callback/test_objc_ccls_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_objc_ccls_command_callbacks.vader | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/command_callback/test_objc_ccls_command_callbacks.vader b/test/command_callback/test_objc_ccls_command_callbacks.vader new file mode 100644 index 00000000..9d0c7690 --- /dev/null +++ b/test/command_callback/test_objc_ccls_command_callbacks.vader @@ -0,0 +1,40 @@ +Before: + call ale#assert#SetUpLinterTest('objc', 'ccls') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The project root should be detected correctly using compile_commands.json file): + AssertLSPProject '' + + call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.m') + + AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') + +Execute(The project root should be detected correctly using .ccls file): + AssertLSPProject '' + + call ale#test#SetFilename('ccls_paths/with_ccls/dummy.m') + + AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls') + +Execute(The project root should be detected correctly using .ccls-root file): + AssertLSPProject '' + + call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.m') + + AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls-root') + +Execute(The executable should be configurable): + AssertLinter 'ccls', ale#Escape('ccls') + + let b:ale_objc_ccls_executable = 'foobar' + + AssertLinter 'foobar', ale#Escape('foobar') + +Execute(The initialization options should be configurable): + AssertLSPOptions {} + + let b:ale_objc_ccls_init_options = { 'cacheDirectory': '/tmp/ccls' } + + AssertLSPOptions { 'cacheDirectory': '/tmp/ccls' } |