Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ycm-core/YouCompleteMe
/ MockTextAfterCursor
Function
MockTextAfterCursor
python/ycm/tests/base_test.py:44–46 ·
view source on GitHub ↗
( text )
Source
from the content-addressed store, hash-verified
42
43
@contextlib.contextmanager
44
def
MockTextAfterCursor( text ):
45
with
patch(
'ycm.vimsupport.TextAfterCursor'
, return_value = text ):
46
yield
47
48
49
class
BaseTest( TestCase ):
Callers
10
test_AdjustCandidateInsertionText_Basic
Method · 0.85
test_AdjustCandidateInsertionText_ParenInTextAfterCursor
Method · 0.85
test_AdjustCandidateInsertionText_PlusInTextAfterCursor
Method · 0.85
test_AdjustCandidateInsertionText_WhitespaceInTextAfterCursor
Method · 0.85
test_AdjustCandidateInsertionText_MoreThanWordMatchingAfterCursor
Method · 0.85
test_AdjustCandidateInsertionText_NotSuffix
Method · 0.85
test_AdjustCandidateInsertionText_NothingAfterCursor
Method · 0.85
test_AdjustCandidateInsertionText_MultipleStrings
Method · 0.85
test_AdjustCandidateInsertionText_DontTouchAbbr
Method · 0.85
test_AdjustCandidateInsertionText_NoAbbr
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected