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

Method test_inc_ref

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

Source from the content-addressed store, hash-verified

300 )
301
302 def test_inc_ref(self) -> None:
303 self.assert_emit(IncRef(self.o), "CPy_INCREF(cpy_r_o);")
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);")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
IncRefClass · 0.90

Tested by

no test coverage detected