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

Method test_call_two_args

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

Source from the content-addressed store, hash-verified

287 self.assert_emit(Call(decl, [self.m], 55), "cpy_r_r0 = CPyDef_myfn(cpy_r_m);")
288
289 def test_call_two_args(self) -> None:
290 decl = FuncDecl(
291 "myfn",
292 None,
293 "mod",
294 FuncSignature(
295 [RuntimeArg("m", int_rprimitive), RuntimeArg("n", int_rprimitive)], int_rprimitive
296 ),
297 )
298 self.assert_emit(
299 Call(decl, [self.m, self.k], 55), "cpy_r_r0 = CPyDef_myfn(cpy_r_m, cpy_r_k);"
300 )
301
302 def test_inc_ref(self) -> None:
303 self.assert_emit(IncRef(self.o), "CPy_INCREF(cpy_r_o);")

Callers

nothing calls this directly

Calls 5

assert_emitMethod · 0.95
FuncDeclClass · 0.90
FuncSignatureClass · 0.90
RuntimeArgClass · 0.90
CallClass · 0.90

Tested by

no test coverage detected