MCPcopy Index your code
hub / github.com/python/cpython / test_read_10

Method test_read_10

Lib/test/test_zstd.py:1897–1906  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1895 f.read(10)
1896
1897 def test_read_10(self):
1898 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) as f:
1899 chunks = []
1900 while True:
1901 result = f.read(10)
1902 if not result:
1903 break
1904 self.assertLessEqual(len(result), 10)
1905 chunks.append(result)
1906 self.assertEqual(b"".join(chunks), DECOMPRESSED_100_PLUS_32KB)
1907
1908 def test_read_multistream(self):
1909 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB * 5)) as f:

Callers

nothing calls this directly

Calls 6

ZstdFileClass · 0.90
assertLessEqualMethod · 0.80
readMethod · 0.45
appendMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected