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

Method test_read1

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

Source from the content-addressed store, hash-verified

1965 f.read(10)
1966
1967 def test_read1(self):
1968 with ZstdFile(io.BytesIO(DAT_130K_C)) as f:
1969 blocks = []
1970 while True:
1971 result = f.read1()
1972 if not result:
1973 break
1974 blocks.append(result)
1975 self.assertEqual(b"".join(blocks), DAT_130K_D)
1976 self.assertEqual(f.read1(), b"")
1977
1978 def test_read1_0(self):
1979 with ZstdFile(io.BytesIO(COMPRESSED_DAT)) as f:

Callers

nothing calls this directly

Calls 5

ZstdFileClass · 0.90
read1Method · 0.45
appendMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected