]> git.madduck.net Git - etc/vim.git/blob - test/linter/test_gobuild.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / linter / test_gobuild.vader
1 Before:
2   Save g:ale_go_go_executable
3
4   call ale#assert#SetUpLinterTest('go', 'gobuild')
5
6 After:
7   call ale#assert#TearDownLinterTest()
8
9 Execute(The default go test command should be correct):
10   AssertLinterCwd '%s:h'
11   AssertLinter 'go', ale#Escape('go') . ' test -c -o /dev/null ./'
12
13 Execute(Go environment variables should be supported):
14   let b:ale_go_go111module = 'on'
15
16   AssertLinter 'go', ale#Env('GO111MODULE', 'on')
17   \ . ale#Escape('go') . ' test -c -o /dev/null ./'
18
19   unlet! b:ale_go_go111module
20
21 Execute(The go test executable and options should be configurable):
22   let g:ale_go_go_executable = 'foobar'
23   let g:ale_go_gobuild_options = '--foo-bar'
24
25   AssertLinter 'foobar', ale#Escape('foobar')
26   \ . ' test --foo-bar -c -o /dev/null ./'