diff options
author | John Eikenberry <jae@zhar.net> | 2018-02-25 11:39:45 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-02-25 11:39:45 +0000 |
commit | 4941bd8d0e5d64dea92892fe52c14d856518462c (patch) | |
tree | d6e5c3d20fc28c61fb26b9aba210668a3b4f5f0c /test/command_callback | |
parent | 89f8d3e456713846d1ebdd934027ae7a910cf5f8 (diff) | |
download | ale-4941bd8d0e5d64dea92892fe52c14d856518462c.zip |
Fix #1358, fix #1369 - Lint the package on save for go vet instead
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_govet_command_callback.vader | 16 |
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('')) |