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

Method test_emit_dec_ref_object

mypyc/test/test_emit.py:115–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 self.assert_output("CPy_INCREF(o);\n")
114
115 def test_emit_dec_ref_object(self) -> None:
116 self.emitter.emit_dec_ref("x", object_rprimitive)
117 self.assert_output("CPy_DECREF(x);\n")
118 self.emitter.emit_dec_ref("x", object_rprimitive, is_xdec=True)
119 self.assert_output("CPy_XDECREF(x);\n")
120
121 def test_emit_dec_ref_int(self) -> None:
122 self.emitter.emit_dec_ref("x", int_rprimitive)

Callers

nothing calls this directly

Calls 2

assert_outputMethod · 0.95
emit_dec_refMethod · 0.45

Tested by

no test coverage detected