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

Method test_seek_forward_across_streams

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

ZstdFileClass · 0.90
lenFunction · 0.85
seekMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected