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

Method test_dec_ref

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

Source from the content-addressed store, hash-verified

304 self.assert_emit(IncRef(self.o), "CPy_INCREF(cpy_r_o);", rare=True)
305
306 def test_dec_ref(self) -> None:
307 self.assert_emit(DecRef(self.o), "CPy_DECREF(cpy_r_o);")
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);")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
DecRefClass · 0.90

Tested by

no test coverage detected