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

Method test_seek_forward_across_streams

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

Source from the content-addressed store, hash-verified

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:
2235 f.seek(len(DECOMPRESSED_100_PLUS_32KB) + 123)
2236 self.assertEqual(f.read(), DECOMPRESSED_100_PLUS_32KB[123:])
2237
2238 def test_seek_forward_relative_to_current(self):
2239 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) 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