Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ read
Method
read
Lib/test/test_zipfile/test_core.py:3780–3783 ·
view source on GitHub ↗
(self, size=-1)
Source
from the content-addressed store, hash-verified
3778
self.bytes_read = 0
3779
3780
def
read(self, size=-1):
3781
bs = super().read(size)
3782
self.bytes_read += len(bs)
3783
return
bs
3784
3785
3786
class
StoredZipExtFileRandomReadTest(unittest.TestCase):
Callers
15
zip_test
Method · 0.45
zip_open_test
Method · 0.45
zip_random_open_test
Method · 0.45
zip_readline_read_test
Method · 0.45
test_low_compression
Method · 0.45
test_read_return_size
Method · 0.45
test_truncated_zipfile
Method · 0.45
test_writing_errors
Method · 0.45
test_append_to_non_zip_file
Method · 0.45
test_read_concatenated_zip_file
Method · 0.45
test_append_to_concatenated_zip_file
Method · 0.45
test_write_default_name
Method · 0.45
Calls
1
super
Class · 0.85
Tested by
no test coverage detected