summaryrefslogtreecommitdiff
path: root/test/command_callback/test_proto_command_callback.vader
blob: 726588c0bc81b0f77ae457064f73d8a350087e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Before:
  call ale#assert#SetUpLinterTest('proto', 'protoc_gen_lint')
  call ale#test#SetFilename('test.proto')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'protoc',
  \ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --lint_out=. ' . '%s'

Execute(The callback should include any additional options):
  let b:ale_proto_protoc_gen_lint_options = '--some-option'

  AssertLinter 'protoc',
  \ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --some-option --lint_out=. ' . '%s'