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

Function data

test/mitmproxy/addons/test_readfile.py:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@pytest.fixture
15def data():
16 f = io.BytesIO()
17
18 w = mitmproxy.io.FlowWriter(f)
19 flows = [
20 tflow.tflow(resp=True),
21 tflow.tflow(err=True),
22 tflow.ttcpflow(),
23 tflow.ttcpflow(err=True),
24 ]
25 for flow in flows:
26 w.add(flow)
27
28 f.seek(0)
29 return f
30
31
32@pytest.fixture

Callers 15

_test_echoFunction · 0.85
finish_handshakeFunction · 0.85
test_simpleMethod · 0.85
test_untrusted_certMethod · 0.85
test_client_onlyMethod · 0.85
test_server_requiredMethod · 0.85
_test_echoFunction · 0.85

Calls 1

addMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…