MCPcopy 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
3786class StoredZipExtFileRandomReadTest(unittest.TestCase):

Callers 15

zip_testMethod · 0.45
zip_open_testMethod · 0.45
zip_random_open_testMethod · 0.45
test_low_compressionMethod · 0.45
test_read_return_sizeMethod · 0.45
test_writing_errorsMethod · 0.45

Calls 1

superClass · 0.85

Tested by

no test coverage detected