diff options
author | fiatjaf <fiatjaf@alhur.es> | 2021-03-26 03:38:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 15:38:57 +0900 |
commit | 655f0070cd2ce575f81092d1faac739fd116b515 (patch) | |
tree | a4356862b0137006eaed26706bacdd3026fcea22 /test/linter | |
parent | b1f95dc4fb15efb1d5238845c99548f2906e2ba3 (diff) | |
download | ale-655f0070cd2ce575f81092d1faac739fd116b515.zip |
Add support for V: "v" (compiler) and "vfmt" fixer. (#3622)
* v: add "v fmt" fixer.
* v: add "v" (build) linter.
* v: fix vlint complaints and add documentation.
* v: add tests.
* v: use ale#Pad().
Diffstat (limited to 'test/linter')
-rw-r--r-- | test/linter/test_v_command_callback.vader | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/linter/test_v_command_callback.vader b/test/linter/test_v_command_callback.vader new file mode 100644 index 00000000..17f24ad7 --- /dev/null +++ b/test/linter/test_v_command_callback.vader @@ -0,0 +1,25 @@ +Before: + Save g:ale_v_v_executable + + call ale#assert#SetUpLinterTest('v', 'v') + + GivenCommandOutput ['/foo/bar', '/foo/baz'] + +After: + Restore + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'v', 'v . -o /tmp/vim-ale-v' + +Execute(Extra options should be supported): + let g:ale_v_v_options = '--foo-bar' + + AssertLinter 'v', 'v --foo-bar . -o /tmp/vim-ale-v' + + let g:ale_v_vbuild_options = '' + +Execute(The executable should be configurable): + let g:ale_v_v_executable = 'foobar' + + AssertLinter 'foobar', 'foobar . -o /tmp/vim-ale-v' |