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

Method test_large_offset

Lib/test/test_mmap.py:916–919  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

914 return f
915
916 def test_large_offset(self):
917 with self._make_test_file(0x14FFFFFFF, b" ") as f:
918 with mmap.mmap(f.fileno(), 0, offset=0x140000000, access=mmap.ACCESS_READ) as m:
919 self.assertEqual(m[0xFFFFFFF], 32)
920
921 def test_large_filesize(self):
922 with self._make_test_file(0x17FFFFFFF, b" ") as f:

Callers

nothing calls this directly

Calls 3

_make_test_fileMethod · 0.95
filenoMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected