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

Method test_empty

test/mitmproxy/io/test_io.py:43–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 pass # should never raise anything else.
42
43 def test_empty(self):
44 assert list(FlowReader(io.BytesIO(b"")).stream()) == []
45
46 def test_unknown_type(self):
47 with pytest.raises(exceptions.FlowReadException, match="Unknown flow type"):

Callers

nothing calls this directly

Calls 2

FlowReaderClass · 0.90
streamMethod · 0.80

Tested by

no test coverage detected