Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ compress
Method
compress
Lib/test/test_gzip.py:863–864 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
861
def
__init__(self):
862
self.modes = []
863
def
compress(self, data):
864
return
b
''
865
def
flush(self, mode=-1):
866
self.modes.append(mode)
867
return
b
''
Callers
15
BaseTest
Class · 0.45
testWriteNonDefaultCompressLevel
Method · 0.45
testDecompressLimited
Method · 0.45
testDecompress4G
Method · 0.45
testCompress
Method · 0.45
testCompressEmptyString
Method · 0.45
test_simple_compress_bad_args
Method · 0.45
test_zstd_multithread_compress
Method · 0.45
test_compress_flushblock
Method · 0.45
test_compress_flushframe
Method · 0.45
test_compress_empty
Method · 0.45
test_set_pledged_input_size
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected