From d1d5292178c8553531f4320ba45e3341e4922497 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 11 Nov 2018 09:42:57 +0000 Subject: Fix #2054 - Make golint configurable --- .../test_golint_command_callbacks.vader | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/command_callback/test_golint_command_callbacks.vader (limited to 'test') 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' -- cgit v1.2.3