MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / tdummyflow

Function tdummyflow

mitmproxy/test/tflow.py:203–214  ·  view source on GitHub ↗
(client_conn=True, server_conn=True, err=None)

Source from the content-addressed store, hash-verified

201
202
203def tdummyflow(client_conn=True, server_conn=True, err=None) -> DummyFlow:
204 if client_conn is True:
205 client_conn = tclient_conn()
206 if server_conn is True:
207 server_conn = tserver_conn()
208 if err is True:
209 err = terr()
210
211 f = DummyFlow(client_conn, server_conn)
212 f.error = err
213 f.live = True
214 return f
215
216
217def tclient_conn() -> connection.Client:

Callers

nothing calls this directly

Calls 4

tclient_connFunction · 0.85
tserver_connFunction · 0.85
terrFunction · 0.85
DummyFlowClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…