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

Method test_access

Lib/test/test_array.py:1751–1758  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1749
1750 @support.bigmemtest(_2G, memuse=2.125)
1751 def test_access(self, size):
1752 example = self.example(size)
1753 self.assertEqual(example[0], 0)
1754 self.assertEqual(example[-(size+4)], 0)
1755 self.assertEqual(example[size], 8)
1756 self.assertEqual(example[-4], 8)
1757 self.assertEqual(example[size+3], 11)
1758 self.assertEqual(example[-1], 11)
1759
1760 @support.bigmemtest(_2G, memuse=2.125+1)
1761 def test_slice(self, size):

Callers

nothing calls this directly

Calls 2

exampleMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected