MCPcopy
hub / github.com/benoitc/gunicorn / mock_get_connection

Function mock_get_connection

benchmarks/dirty_streaming.py:259–260  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

257 mock_reader = MockStreamReader(messages)
258
259 async def mock_get_connection(pid):
260 return mock_reader, MockStreamWriter()
261
262 arbiter._get_worker_connection = mock_get_connection
263

Callers

nothing calls this directly

Calls 1

MockStreamWriterClass · 0.70

Tested by

no test coverage detected