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

Function test_server_playback

test/mitmproxy/addons/test_serverplayback.py:42–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_server_playback():
43 sp = serverplayback.ServerPlayback()
44 with taddons.context(sp) as tctx:
45 tctx.configure(sp)
46 f = tflow.tflow(resp=True)
47
48 assert not sp.flowmap
49
50 sp.load_flows([f])
51 assert sp.flowmap
52 assert sp.next_flow(f)
53 assert not sp.flowmap
54
55 sp.load_flows([f])
56 assert sp.flowmap
57 sp.clear()
58 assert not sp.flowmap
59
60
61def test_add_flows():

Callers

nothing calls this directly

Calls 5

load_flowsMethod · 0.95
next_flowMethod · 0.95
clearMethod · 0.95
contextMethod · 0.80
configureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…