summaryrefslogtreecommitdiff
path: root/test/command_callback/test_gobuild_command_callback.vader
blob: f96732138eb816b72b6f1771c92c73df4b72e5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('go', 'gobuild')

  WithChainResults ['/foo/bar', '/foo/baz']

After:
  call ale#assert#TearDownLinterTest()

Execute(The default commands should be correct):
  AssertLinter 'go',
  \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
  \   . 'go test -c -o /dev/null ./'

Execute(Extra options should be supported):
  let g:ale_go_gobuild_options = '--foo-bar'

  AssertLinter 'go',
  \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
  \   . 'go test --foo-bar -c -o /dev/null ./'