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

Method test_fuzz

test/mitmproxy/io/test_io.py:22–29  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

20 @example(b"0:")
21 @example(b"0:~")
22 def test_fuzz(self, data):
23 f = io.BytesIO(data)
24 reader = FlowReader(f)
25 try:
26 for _ in reader.stream():
27 pass
28 except exceptions.FlowReadException:
29 pass # should never raise anything else.
30
31 @pytest.mark.parametrize(
32 "file", [pytest.param(x, id=x.stem) for x in here.glob("har_files/*.har")]

Callers

nothing calls this directly

Calls 2

streamMethod · 0.95
FlowReaderClass · 0.90

Tested by

no test coverage detected