blob: c6ef8bf5a773ac691c7c8e8edae78808d52d25ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Before:
function! MockAlwaysGetCompletions() abort
let g:get_completions_called = 0
function! ale#completion#AlwaysGetCompletions() abort
let g:get_completions_called = 1
endfunction
endfunction
call MockAlwaysGetCompletions()
After:
unlet! g:get_completions_called
delfunction MockAlwaysGetCompletions
delfunction ale#completion#AlwaysGetCompletions
runtime autoload/ale/completion.vim
Execute(ale#completion#AlwaysGetCompletions should be called when ALEComplete is executed):
AssertEqual 0, g:get_completions_called
ALEComplete
AssertEqual 1, g:get_completions_called
|