From 4941bd8d0e5d64dea92892fe52c14d856518462c Mon Sep 17 00:00:00 2001 From: John Eikenberry Date: Sun, 25 Feb 2018 11:39:45 +0000 Subject: Fix #1358, fix #1369 - Lint the package on save for go vet instead --- test/command_callback/test_govet_command_callback.vader | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/command_callback/test_govet_command_callback.vader (limited to 'test/command_callback') 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('')) -- cgit v1.2.3