summaryrefslogtreecommitdiff
path: root/test/command_callback/test_bingo_command_callback.vader
blob: fa343bfeeef36908c68e25f7e5944fcea1904858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Before:
  call ale#assert#SetUpLinterTest('go', 'bingo')

After:
  Restore

  unlet! b:ale_completion_enabled

  call ale#assert#TearDownLinterTest()

Execute(should set correct defaults):
  AssertLinter 'bingo', ale#Escape('bingo') . ' --mode stdio'

Execute(should configure bingo callback executable):
  let b:ale_go_bingo_executable = 'boo'
  let b:ale_go_bingo_options = ''

  AssertLinter 'boo', ale#Escape('boo')

Execute(should set bingo options):
  call ale#test#SetFilename('go_paths/go1/prj1/file.go')
  " let b:ale_completion_enabled = 1
  let b:ale_go_bingo_options = ''

  AssertLinter 'bingo',
  \ ale#Escape('bingo') . ''

  let b:ale_go_bingo_options = '--mode stdio --trace'

  AssertLinter 'bingo',
  \ ale#Escape('bingo') . ' --mode stdio --trace'