From 623fdf212cd70131df4d3c52de26d9d1faa5d90e Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 23 Aug 2017 21:41:29 +0100 Subject: Include executable checks in ALEInfo --- test/test_ale_info.vader | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test/test_ale_info.vader') 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): \ '', \ '<<>>', \]) + +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', + \]) -- cgit v1.2.3