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

Method test_insert

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

Source from the content-addressed store, hash-verified

1818
1819 @support.bigmemtest(_2G, memuse=2.125)
1820 def test_insert(self, size):
1821 example = self.example(size)
1822 example.insert(0, 12)
1823 example.insert(10, 13)
1824 example.insert(size+1, 14)
1825 self.assertEqual(len(example), size+7)
1826 self.assertEqual(example[0], 12)
1827 self.assertEqual(example[10], 13)
1828 self.assertEqual(example[size+1], 14)
1829
1830 @support.bigmemtest(_2G, memuse=2.125)
1831 def test_pop(self, size):

Callers

nothing calls this directly

Calls 4

exampleMethod · 0.95
lenFunction · 0.85
insertMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected