diff options
author | Jeff Willette <jrwillette88@gmail.com> | 2017-11-10 18:37:23 +0900 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-11-10 09:37:23 +0000 |
commit | 27780cbb230fad55fbc07752febe5c21a69a18aa (patch) | |
tree | 3a88b32c4ba2d3b3c12efbfe10c61ed90e869c8b /test | |
parent | d425b8a18ab3c8155fdc7376192434f8878e954f (diff) | |
download | ale-27780cbb230fad55fbc07752febe5c21a69a18aa.zip |
Added support for linting of proto files (#1098)
* Added support for linting of proto files
* Added function to get the proper protoc command
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_proto_command_callback.vader | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command_callback/test_proto_command_callback.vader b/test/command_callback/test_proto_command_callback.vader new file mode 100644 index 00000000..2730bb84 --- /dev/null +++ b/test/command_callback/test_proto_command_callback.vader @@ -0,0 +1,16 @@ +Before: + call ale#test#SetDirectory('/testplugin/test/command_callback') + call ale#test#SetFilename('test.proto') + +After: + Restore + + call ale#test#RestoreDirectory() + call ale#linter#Reset() + +Execute(The default command should be correct): + + AssertEqual + \ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --lint_out=. ' . '%s', + \ ale_linters#proto#protoc_gen_lint#GetCommand(bufnr('')) + |