MCPcopy Index your code
hub / github.com/python/mypy / test_size

Method test_size

mypyc/test/test_rarray.py:44–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert compute_rtype_alignment(b) == 1
43
44 def test_size(self) -> None:
45 a = RArray(int_rprimitive, 9)
46 assert compute_rtype_size(a) == 9 * PLATFORM_SIZE
47 b = RArray(bool_rprimitive, 3)
48 assert compute_rtype_size(b) == 3

Callers

nothing calls this directly

Calls 2

RArrayClass · 0.90
compute_rtype_sizeFunction · 0.90

Tested by

no test coverage detected