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

Method test_integer

mypyc/test/test_emitfunc.py:151–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149 self.assert_emit(Return(self.m), "return cpy_r_m;")
150
151 def test_integer(self) -> None:
152 self.assert_emit(Assign(self.n, Integer(5)), "cpy_r_n = 10;")
153 self.assert_emit(Assign(self.i32, Integer(5, c_int_rprimitive)), "cpy_r_i32 = 5;")
154
155 def test_tuple_get(self) -> None:
156 self.assert_emit(TupleGet(self.t, 1, 0), "cpy_r_r0 = cpy_r_t.f1;")

Callers

nothing calls this directly

Calls 3

assert_emitMethod · 0.95
AssignClass · 0.90
IntegerClass · 0.90

Tested by

no test coverage detected