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

Method test_alignment

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

Source from the content-addressed store, hash-verified

36 assert hash(RArray(bool_rprimitive, 5)) == hash(RArray(bool_rprimitive, 5))
37
38 def test_alignment(self) -> None:
39 a = RArray(int_rprimitive, 10)
40 assert compute_rtype_alignment(a) == PLATFORM_SIZE
41 b = RArray(bool_rprimitive, 55)
42 assert compute_rtype_alignment(b) == 1
43
44 def test_size(self) -> None:
45 a = RArray(int_rprimitive, 9)

Callers

nothing calls this directly

Calls 2

RArrayClass · 0.90
compute_rtype_alignmentFunction · 0.90

Tested by

no test coverage detected