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

Method test_inc_ref_int

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

Source from the content-addressed store, hash-verified

308 self.assert_emit(DecRef(self.o), "CPy_DecRef(cpy_r_o);", rare=True)
309
310 def test_inc_ref_int(self) -> None:
311 self.assert_emit(IncRef(self.m), "CPyTagged_INCREF(cpy_r_m);")
312 self.assert_emit(IncRef(self.m), "CPyTagged_IncRef(cpy_r_m);", rare=True)
313
314 def test_dec_ref_int(self) -> None:
315 self.assert_emit(DecRef(self.m), "CPyTagged_DECREF(cpy_r_m);")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
IncRefClass · 0.90

Tested by

no test coverage detected