MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / MockCurrentColumnAndLineContents

Function MockCurrentColumnAndLineContents

python/ycm/tests/base_test.py:36–40  ·  view source on GitHub ↗
( column, line_contents )

Source from the content-addressed store, hash-verified

34
35@contextlib.contextmanager
36def MockCurrentColumnAndLineContents( column, line_contents ):
37 with patch( 'ycm.vimsupport.CurrentColumn', return_value = column ):
38 with patch( 'ycm.vimsupport.CurrentLineContents',
39 return_value = line_contents ):
40 yield
41
42
43@contextlib.contextmanager

Calls

no outgoing calls

Tested by

no test coverage detected