@@ -68,18 +68,19 @@ function! Test_Call_Hierarchy()
6868 call assert_match ( ' ^ -Function: h.*:8' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 4 )[ 0 ] )
6969 call assert_match ( ' ^ -Function: h.*:9' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 5 )[ 0 ] )
7070
71- " silent, because clangd does not support outgoing calls.
72- silent call feedkeys ( " \<Down>\<Down>\<Down>\<Down>\<S-Tab> " , " xt" )
73- " Re-root at h.
74- call WaitForAssert ( { - > assert_equal ( len ( getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 , ' $' ) ), 1 ) } )
75- call assert_match ( ' ^+Function: h' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 )[0 ] )
71+ " re-root at h; show outgoing calls from h
72+ call feedkeys ( " \<Down>\<Down>\<Down>\<Down>\<S-Tab> " , " xt" )
73+ call WaitForAssert ( { - > assert_equal ( len ( getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 , ' $' ) ), 3 ) } )
74+ call assert_match ( ' ^ +Function: g' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 )[0 ] )
75+ call assert_match ( ' ^ +Function: f' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 2 )[0 ] )
76+ call assert_match ( ' ^+Function: h' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 3 )[0 ] )
7677
77- " silent, because clangd does not support outgoing calls.
78+ " silent, because h() has no incoming calls
7879 silent call feedkeys ( " \<S-Tab>\<Tab> " , " xt" )
79- " Expansion after re-rooting works.
80- " NOTE: Clangd does not support outgoing calls, hence, we are stuck at just h.
81- call WaitForAssert ( { - > assert_equal ( len ( getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 , ' $ ' ) ), 1 ) } )
82- call assert_match ( ' ^-Function: h' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 )[ 0 ] )
80+ call WaitForAssert ( { - > assert_equal ( len ( getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 , ' $ ' ) ), 3 ) } )
81+ call assert_match ( ' ^ +Function: g ' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 1 )[ 0 ] )
82+ call assert_match ( ' ^ +Function: f ' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 2 )[ 0 ] )
83+ call assert_match ( ' ^-Function: h' , getbufline ( winbufnr ( popup_list ()[ 0 ] ), 3 )[0 ] )
8384
8485 call feedkeys ( " \<C-c> " , " xt" )
8586 " Make sure it is closed.
0 commit comments