MCPcopy Create free account
hub / github.com/python/mypy / test_inc_ref_bool

Method test_inc_ref_bool

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

Source from the content-addressed store, hash-verified

936 self.assert_emit([b, IncRef(b)], "" if HAVE_IMMORTAL else "CPy_INCREF(cpy_r_r0);")
937
938 def test_inc_ref_bool(self) -> None:
939 b = Box(self.b)
940 self.assert_emit([b, IncRef(b)], "" if HAVE_IMMORTAL else "CPy_INCREF(cpy_r_r0);")
941
942 def test_inc_ref_int_literal(self) -> None:
943 for x in -5, 0, 1, 5, 255, 256:

Callers

nothing calls this directly

Calls 3

assert_emitMethod · 0.95
BoxClass · 0.90
IncRefClass · 0.90

Tested by

no test coverage detected