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

Function test_simple_dns

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

Source from the content-addressed store, hash-verified

180
181
182def test_simple_dns():
183 v = view.View()
184 f = tflow.tdnsflow(resp=True, err=True)
185 assert v.store_count() == 0
186 v.dns_request(f)
187 assert list(v) == [f]
188
189 # These all just call update
190 v.dns_request(f)
191 v.dns_response(f)
192 v.dns_error(f)
193 assert list(v) == [f]
194
195
196def test_filter():

Callers

nothing calls this directly

Calls 4

store_countMethod · 0.95
dns_requestMethod · 0.95
dns_responseMethod · 0.95
dns_errorMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…