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

Method test_int_neg

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

Source from the content-addressed store, hash-verified

175 )
176
177 def test_int_neg(self) -> None:
178 assert int_neg_op.c_function_name is not None
179 self.assert_emit(
180 CallC(
181 int_neg_op.c_function_name,
182 [self.m],
183 int_neg_op.return_type,
184 int_neg_op.steals,
185 int_neg_op.is_borrowed,
186 int_neg_op.is_borrowed,
187 int_neg_op.error_kind,
188 55,
189 ),
190 "cpy_r_r0 = CPyTagged_Negate(cpy_r_m);",
191 )
192
193 def test_branch(self) -> None:
194 self.assert_emit(

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
CallCClass · 0.90

Tested by

no test coverage detected