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

Method test_seek_forward

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

Source from the content-addressed store, hash-verified

2227 self.assertEqual(dst.getvalue(), expected)
2228
2229 def test_seek_forward(self):
2230 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) as f:
2231 f.seek(555)
2232 self.assertEqual(f.read(), DECOMPRESSED_100_PLUS_32KB[555:])
2233
2234 def test_seek_forward_across_streams(self):
2235 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB * 2)) as f:

Callers

nothing calls this directly

Calls 4

ZstdFileClass · 0.90
seekMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected