summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorJerko Steiner <jerko.steiner@gmail.com>2019-01-05 19:12:55 +0000
committerw0rp <w0rp@users.noreply.github.com>2019-01-05 19:12:55 +0000
commit5bbe77101db18968fde65210956e54750d7ff4f5 (patch)
tree4ed96d074f286b16c00df3712a7c7f243d47f9ab /test/command_callback
parent4f3190daa88583523df89d4cb7add1584e0e9b7d (diff)
downloadale-5bbe77101db18968fde65210956e54750d7ff4f5.zip
Add support for bingo (#2165)
* Add support for https://github.com/saibing/bingo * Add docs for ale-go-bingo * Use go.mod when found * Add test for bingo FindProjectRoot * Simplify ale_linters#go#bingo#GetCommand
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_bingo_command_callback.vader31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/command_callback/test_bingo_command_callback.vader b/test/command_callback/test_bingo_command_callback.vader
new file mode 100644
index 00000000..fa343bfe
--- /dev/null
+++ b/test/command_callback/test_bingo_command_callback.vader
@@ -0,0 +1,31 @@
+Before:
+ call ale#assert#SetUpLinterTest('go', 'bingo')
+
+After:
+ Restore
+
+ unlet! b:ale_completion_enabled
+
+ call ale#assert#TearDownLinterTest()
+
+Execute(should set correct defaults):
+ AssertLinter 'bingo', ale#Escape('bingo') . ' --mode stdio'
+
+Execute(should configure bingo callback executable):
+ let b:ale_go_bingo_executable = 'boo'
+ let b:ale_go_bingo_options = ''
+
+ AssertLinter 'boo', ale#Escape('boo')
+
+Execute(should set bingo options):
+ call ale#test#SetFilename('go_paths/go1/prj1/file.go')
+ " let b:ale_completion_enabled = 1
+ let b:ale_go_bingo_options = ''
+
+ AssertLinter 'bingo',
+ \ ale#Escape('bingo') . ''
+
+ let b:ale_go_bingo_options = '--mode stdio --trace'
+
+ AssertLinter 'bingo',
+ \ ale#Escape('bingo') . ' --mode stdio --trace'