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

Method test_emit_dec_ref_int

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

Source from the content-addressed store, hash-verified

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)
123 self.assert_output("CPyTagged_DECREF(x);\n")
124 self.emitter.emit_dec_ref("x", int_rprimitive, is_xdec=True)
125 self.assert_output("CPyTagged_XDECREF(x);\n")
126
127 def test_emit_dec_ref_rare(self) -> None:
128 self.emitter.emit_dec_ref("x", object_rprimitive, rare=True)

Callers

nothing calls this directly

Calls 2

assert_outputMethod · 0.95
emit_dec_refMethod · 0.45

Tested by

no test coverage detected