summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-23 21:41:29 +0100
committerw0rp <devw0rp@gmail.com>2017-08-23 21:41:29 +0100
commit623fdf212cd70131df4d3c52de26d9d1faa5d90e (patch)
treec2e98dbffcc9abf65d4a656ddc3e867dee74e55c /test
parent0507503aa755587892e8841a749dc0ca8641a6f8 (diff)
downloadale-623fdf212cd70131df4d3c52de26d9d1faa5d90e.zip
Include executable checks in ALEInfo
Diffstat (limited to 'test')
-rw-r--r--test/test_ale_info.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test_ale_info.vader b/test/test_ale_info.vader
index a8913df4..9cb768a2 100644
--- a/test/test_ale_info.vader
+++ b/test/test_ale_info.vader
@@ -7,6 +7,7 @@ Before:
let g:testlinter1 = {'name': 'testlinter1', 'executable': 'testlinter1', 'command': 'testlinter1', 'callback': 'testCB1', 'output_stream': 'stdout'}
let g:testlinter2 = {'name': 'testlinter2', 'executable': 'testlinter2', 'command': 'testlinter2', 'callback': 'testCB2', 'output_stream': 'stdout'}
+ call ale#engine#ResetExecutableCache()
call ale#linter#Reset()
let g:ale_linters = {}
let g:ale_linter_aliases = {}
@@ -351,3 +352,22 @@ Execute (ALEInfo command history should print command output if logging is on):
\ '',
\ '<<<NO OUTPUT RETURNED>>>',
\])
+
+Execute (ALEInfo should include executable checks in the history):
+ let g:ale_buffer_info[bufnr('')] = {'history': []}
+
+ call ale#linter#Define('testft', g:testlinter1)
+ call ale#engine#IsExecutable(bufnr(''), 'echo')
+ call ale#engine#IsExecutable(bufnr(''), 'TheresNoWayThisIsExecutable')
+
+ call CheckInfo([
+ \ ' Current Filetype: testft.testft2',
+ \ 'Available Linters: [''testlinter1'']',
+ \ ' Enabled Linters: [''testlinter1'']',
+ \ ' Linter Variables:',
+ \ '',
+ \] + g:globals_lines + g:command_header + [
+ \ '',
+ \ '(executable check - success) echo',
+ \ '(executable check - failure) TheresNoWayThisIsExecutable',
+ \])