summaryrefslogtreecommitdiff
path: root/test/linter/test_thriftcheck.vader
blob: 0da3bd6d19ee537dc29b50633ff42347f8784d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Before:
  call ale#assert#SetUpLinterTest('thrift', 'thriftcheck')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'thriftcheck', ale#Escape('thriftcheck')
  \ . ' --stdin-filename %s %t'

Execute(The executable should be configurable):
  let b:ale_thrift_thriftcheck_executable = 'foobar'

  AssertLinter 'foobar', ale#Escape('foobar')
  \ . ' --stdin-filename %s %t'

Execute(The string of options should be configurable):
  let b:ale_thrift_thriftcheck_options = '--errors-only'

  AssertLinter 'thriftcheck', ale#Escape('thriftcheck')
  \ . ' --errors-only --stdin-filename %s %t'