1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
function! SetUp()
let g:ycm_use_clangd = 1
let g:ycm_confirm_extra_conf = 0
let g:ycm_auto_trigger = 1
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'DEBUG'
set completeopt-=preview
call youcompleteme#test#setup#SetUp()
endfunction
function! TearDown()
call youcompleteme#test#setup#CleanUp()
endfunction
exe 'source' expand( "<sfile>:p:h" ) .. '/completion.common.vim'
function! Test_No_Resolve()
let debug_info = split( execute( 'YcmDebugInfo' ), "\n" )
enew
setf cpp
call assert_equal( '', &completefunc )
for line in debug_info
if line =~# "^-- Resolve completions: "
let ver = substitute( line, "^-- Resolve completions: ", "", "" )
call assert_equal( 'Never', ver, 'API version' )
return
endif
endfor
call assert_report( "Didn't find the resolve type in the YcmDebugInfo" )
endfunction
|