(self)
| 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) |
nothing calls this directly
no test coverage detected