MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_timestamp_end

Function test_timestamp_end

test/mitmproxy/addons/test_savehar.py:125–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def test_timestamp_end():
126 s = SaveHar()
127 servers_seen: set[Server] = set()
128 flow = tflow.twebsocketflow()
129
130 assert s.flow_entry(flow, set())["timings"]["send"] == 1000
131
132 flow.request.timestamp_end = None
133 calculated_timings = s.flow_entry(flow, servers_seen)["timings"]
134
135 assert calculated_timings["send"] == 0
136
137
138def test_tls_setup():

Callers

nothing calls this directly

Calls 3

flow_entryMethod · 0.95
SaveHarClass · 0.90
setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…