(self)
| 1980 | self.assertEqual(f.read1(0), b"") |
| 1981 | |
| 1982 | def test_read1_10(self): |
| 1983 | with ZstdFile(io.BytesIO(COMPRESSED_DAT)) as f: |
| 1984 | blocks = [] |
| 1985 | while True: |
| 1986 | result = f.read1(10) |
| 1987 | if not result: |
| 1988 | break |
| 1989 | blocks.append(result) |
| 1990 | self.assertEqual(b"".join(blocks), DECOMPRESSED_DAT) |
| 1991 | self.assertEqual(f.read1(), b"") |
| 1992 | |
| 1993 | def test_read1_multistream(self): |
| 1994 | with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB * 5)) as f: |
nothing calls this directly
no test coverage detected