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

Method test_frombytes

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

Source from the content-addressed store, hash-verified

1796
1797 @support.bigmemtest(_2G, memuse=2.125)
1798 def test_frombytes(self, size):
1799 example = self.example(size)
1800 example.frombytes(b'abcd')
1801 self.assertEqual(len(example), size+8)
1802 self.assertEqual(list(example[-8:]), [8, 9, 10, 11] + list(b'abcd'))
1803
1804 @support.bigmemtest(_2G, memuse=2.125)
1805 def test_fromlist(self, size):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected