MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read_10

Method test_read_10

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected