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

Method test_read1

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

Source from the content-addressed store, hash-verified

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