2018-02-04 08:55:09 -05:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('go', 'gobuild')
|
2018-02-04 08:55:09 -05:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
WithChainResults ['/foo/bar', '/foo/baz']
|
2018-02-04 08:55:09 -05:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-02-04 08:55:09 -05:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
Execute(The default commands should be correct):
|
2018-08-22 19:08:33 -04:00
|
|
|
AssertLinter 'go',
|
|
|
|
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
2018-02-04 08:55:09 -05:00
|
|
|
\ . 'go test -c -o /dev/null ./'
|
|
|
|
|
|
|
|
Execute(Extra options should be supported):
|
|
|
|
let g:ale_go_gobuild_options = '--foo-bar'
|
|
|
|
|
2018-08-22 19:08:33 -04:00
|
|
|
AssertLinter 'go',
|
|
|
|
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
2018-02-04 08:55:09 -05:00
|
|
|
\ . 'go test --foo-bar -c -o /dev/null ./'
|