Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mitmproxy/mitmproxy
/ test_view_zip_empty
Function
test_view_zip_empty
test/mitmproxy/contentviews/test__view_zip.py:43–49 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
41
42
43
def
test_view_zip_empty():
44
buffer = io.BytesIO()
45
with
zipfile.ZipFile(buffer,
"w"
):
46
pass
47
assert (
48
zip.prettify(buffer.getvalue(), meta(
"application/zip"
)) ==
"(empty zip file)"
49
)
50
51
52
def
test_render_priority():
Callers
nothing calls this directly
Calls
3
getvalue
Method · 0.80
meta
Function · 0.70
prettify
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…