From 27780cbb230fad55fbc07752febe5c21a69a18aa Mon Sep 17 00:00:00 2001 From: Jeff Willette Date: Fri, 10 Nov 2017 18:37:23 +0900 Subject: Added support for linting of proto files (#1098) * Added support for linting of proto files * Added function to get the proper protoc command --- test/command_callback/test_proto_command_callback.vader | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/command_callback/test_proto_command_callback.vader (limited to 'test/command_callback/test_proto_command_callback.vader') 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('')) + -- cgit v1.2.3