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

Method test_seek_forward_relative_to_current

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

Source from the content-addressed store, hash-verified

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:
2240 f.read(100)
2241 f.seek(1236, 1)
2242 self.assertEqual(f.read(), DECOMPRESSED_100_PLUS_32KB[1336:])
2243
2244 def test_seek_forward_relative_to_end(self):
2245 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) as f:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected