summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-11-11 09:42:57 +0000
committerw0rp <devw0rp@gmail.com>2018-11-11 09:42:57 +0000
commitd1d5292178c8553531f4320ba45e3341e4922497 (patch)
tree735f1ab5ceb50b57b988e8317130789afc6429c3 /test
parentb96105bebb42c0b6323ba9a283e9cbbc99f68663 (diff)
downloadale-d1d5292178c8553531f4320ba45e3341e4922497.zip
Fix #2054 - Make golint configurable
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_golint_command_callbacks.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/command_callback/test_golint_command_callbacks.vader b/test/command_callback/test_golint_command_callbacks.vader
new file mode 100644
index 00000000..7c300309
--- /dev/null
+++ b/test/command_callback/test_golint_command_callbacks.vader
@@ -0,0 +1,18 @@
+Before:
+ call ale#assert#SetUpLinterTest('go', 'golint')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default golint command should be correct):
+ AssertLinter 'golint', ale#Escape('golint') . ' %t'
+
+Execute(The golint executable should be configurable):
+ let b:ale_go_golint_executable = 'foobar'
+
+ AssertLinter 'foobar', ale#Escape('foobar') . ' %t'
+
+Execute(The golint options should be configurable):
+ let b:ale_go_golint_options = '--foo'
+
+ AssertLinter 'golint', ale#Escape('golint') . ' --foo %t'