MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_simple_tcp

Function test_simple_tcp

test/mitmproxy/addons/test_view.py:152–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150
151
152def test_simple_tcp():
153 v = view.View()
154 f = tflow.ttcpflow()
155 assert v.store_count() == 0
156 v.tcp_start(f)
157 assert list(v) == [f]
158
159 # These all just call update
160 v.tcp_start(f)
161 v.tcp_message(f)
162 v.tcp_error(f)
163 v.tcp_end(f)
164 assert list(v) == [f]
165
166
167def test_simple_udp():

Callers

nothing calls this directly

Calls 5

store_countMethod · 0.95
tcp_startMethod · 0.95
tcp_messageMethod · 0.95
tcp_errorMethod · 0.95
tcp_endMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…