MCPcopy Index your code
hub / github.com/python/cpython / _iter_side_effect

Function _iter_side_effect

Lib/unittest/mock.py:3001–3006  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2999 yield _state[0].readline(*args, **kwargs)
3000
3001 def _iter_side_effect():
3002 if handle.readline.return_value is not None:
3003 while True:
3004 yield handle.readline.return_value
3005 for line in _state[0]:
3006 yield line
3007
3008 def _next_side_effect():
3009 if handle.readline.return_value is not None:

Callers 1

_readline_side_effectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…