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

Method test_call

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

Source from the content-addressed store, hash-verified

281 self.assert_emit(b, """if (likely(cpy_r_b)) goto CPyL9;""", next_block=next_block)
282
283 def test_call(self) -> None:
284 decl = FuncDecl(
285 "myfn", None, "mod", FuncSignature([RuntimeArg("m", int_rprimitive)], int_rprimitive)
286 )
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(

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