summaryrefslogtreecommitdiff
path: root/test/command_callback/test_gosimple_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-03-20 20:17:43 +0000
committerGitHub <noreply@github.com>2018-03-20 20:17:43 +0000
commit57a93cbc04de402686494d47bd4147c827383086 (patch)
tree31363ece819ed2530900cc5466253eb1660ed6d9 /test/command_callback/test_gosimple_command_callback.vader
parent43e8f47e6e8c4fd3cc7ea161120c320b85813efd (diff)
parent6452c5e2f0aded3044a4263189f5b46c37409981 (diff)
downloadale-57a93cbc04de402686494d47bd4147c827383086.zip
Merge pull request #1433 from benpaxton-hf/lint-whole-package
Lint whole package for gosimple and gotype
Diffstat (limited to 'test/command_callback/test_gosimple_command_callback.vader')
-rw-r--r--test/command_callback/test_gosimple_command_callback.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command_callback/test_gosimple_command_callback.vader b/test/command_callback/test_gosimple_command_callback.vader
new file mode 100644
index 00000000..a0b1f468
--- /dev/null
+++ b/test/command_callback/test_gosimple_command_callback.vader
@@ -0,0 +1,12 @@
+Before:
+ runtime ale_linters/go/gosimple.vim
+ call ale#test#SetFilename('../go_files/testfile2.go')
+
+After:
+ call ale#linter#Reset()
+
+Execute(The default gosimple command should be correct):
+ AssertEqual 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
+ \ . ' gosimple .',
+ \ ale_linters#go#gosimple#GetCommand(bufnr(''))
+