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

Method test__sizeof__

Lib/test/test_struct.py:598–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

596
597 @support.cpython_only
598 def test__sizeof__(self):
599 for code in integer_codes:
600 self.check_sizeof(code, 1)
601 self.check_sizeof('BHILfdspP', 9)
602 self.check_sizeof('B' * 1234, 1234)
603 self.check_sizeof('fd', 2)
604 self.check_sizeof('xxxxxxxxxxxxxx', 0)
605 self.check_sizeof('100H', 1)
606 self.check_sizeof('187s', 1)
607 self.check_sizeof('20p', 1)
608 self.check_sizeof('0s', 1)
609 self.check_sizeof('0p', 1)
610 self.check_sizeof('0c', 0)
611
612 def test_boundary_error_message(self):
613 regex1 = (

Callers

nothing calls this directly

Calls 1

check_sizeofMethod · 0.95

Tested by

no test coverage detected