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

Method test_index

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

Source from the content-addressed store, hash-verified

1810
1811 @support.bigmemtest(_2G, memuse=2.125)
1812 def test_index(self, size):
1813 example = self.example(size)
1814 self.assertEqual(example.index(0), 0)
1815 self.assertEqual(example.index(1), 1)
1816 self.assertEqual(example.index(7), 7)
1817 self.assertEqual(example.index(11), size+3)
1818
1819 @support.bigmemtest(_2G, memuse=2.125)
1820 def test_insert(self, size):

Callers

nothing calls this directly

Calls 3

exampleMethod · 0.95
assertEqualMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected