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

Method test_seek_forward_relative_to_end

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

Source from the content-addressed store, hash-verified

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:
2246 f.seek(-555, 2)
2247 self.assertEqual(f.read(), DECOMPRESSED_100_PLUS_32KB[-555:])
2248
2249 def test_seek_backward(self):
2250 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