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

Function test_flow_entry

test/mitmproxy/addons/test_savehar.py:176–185  ·  view source on GitHub ↗

https://github.com/mitmproxy/mitmproxy/issues/6579

()

Source from the content-addressed store, hash-verified

174
175
176def test_flow_entry():
177 """https://github.com/mitmproxy/mitmproxy/issues/6579"""
178 s = SaveHar()
179 req = Request.make("CONNECT", "https://test.test/")
180 flow = tflow.tflow(req=req)
181 servers_seen: set[Server] = set()
182
183 flow_entry = s.flow_entry(flow, servers_seen)
184
185 assert flow_entry["request"]["url"].startswith("https")
186
187
188class TestHardumpOption:

Callers

nothing calls this directly

Calls 4

flow_entryMethod · 0.95
SaveHarClass · 0.90
setFunction · 0.85
makeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…