summaryrefslogtreecommitdiff
path: root/test/command_callback/test_govet_command_callback.vader
diff options
context:
space:
mode:
authorJohn Eikenberry <jae@zhar.net>2018-02-25 11:39:45 +0000
committerw0rp <devw0rp@gmail.com>2018-02-25 11:39:45 +0000
commit4941bd8d0e5d64dea92892fe52c14d856518462c (patch)
treed6e5c3d20fc28c61fb26b9aba210668a3b4f5f0c /test/command_callback/test_govet_command_callback.vader
parent89f8d3e456713846d1ebdd934027ae7a910cf5f8 (diff)
downloadale-4941bd8d0e5d64dea92892fe52c14d856518462c.zip
Fix #1358, fix #1369 - Lint the package on save for go vet instead
Diffstat (limited to 'test/command_callback/test_govet_command_callback.vader')
-rw-r--r--test/command_callback/test_govet_command_callback.vader16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command_callback/test_govet_command_callback.vader b/test/command_callback/test_govet_command_callback.vader
new file mode 100644
index 00000000..a9b29605
--- /dev/null
+++ b/test/command_callback/test_govet_command_callback.vader
@@ -0,0 +1,16 @@
+Before:
+ runtime ale_linters/go/govet.vim
+
+ call ale#test#SetDirectory('/testplugin/test/command_callback')
+
+After:
+ Restore
+
+ call ale#linter#Reset()
+ call ale#test#RestoreDirectory()
+
+Execute(The default command should be correct):
+ AssertEqual
+ \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
+ \ . ' go vet .',
+ \ ale_linters#go#govet#GetCommand(bufnr(''))