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

Method test_seek_forward

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

Source from the content-addressed store, hash-verified

2226 self.assertEqual(dst.getvalue(), expected)
2227
2228 def test_seek_forward(self):
2229 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) as f:
2230 f.seek(555)
2231 self.assertEqual(f.read(), DECOMPRESSED_100_PLUS_32KB[555:])
2232
2233 def test_seek_forward_across_streams(self):
2234 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