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

Method test_fromlist

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

Source from the content-addressed store, hash-verified

1803
1804 @support.bigmemtest(_2G, memuse=2.125)
1805 def test_fromlist(self, size):
1806 example = self.example(size)
1807 example.fromlist([12, 13, 14, 15])
1808 self.assertEqual(len(example), size+8)
1809 self.assertEqual(list(example[-8:]), [8, 9, 10, 11, 12, 13, 14, 15])
1810
1811 @support.bigmemtest(_2G, memuse=2.125)
1812 def test_index(self, size):

Callers

nothing calls this directly

Calls 5

exampleMethod · 0.95
lenFunction · 0.85
listClass · 0.85
fromlistMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected