diff options
author | Jeff Willette <jrwillette88@gmail.com> | 2017-11-10 18:37:23 +0900 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-12 10:56:53 +0000 |
commit | 8bc44ed585db4c704f4c93feab6477f32d8aebe6 (patch) | |
tree | 517e6ba82c3708b2eaabc4b0dc85d75f65dee237 /test/command_callback | |
parent | a8c5e0f4dce14b9dad8e4a238ebc93d8aa6ed28e (diff) | |
download | ale-8bc44ed585db4c704f4c93feab6477f32d8aebe6.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/command_callback')
-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('')) + |