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

Method test_return

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

Source from the content-addressed store, hash-verified

146 self.assert_emit(Goto(next_block), "", next_block=next_block)
147
148 def test_return(self) -> None:
149 self.assert_emit(Return(self.m), "return cpy_r_m;")
150
151 def test_integer(self) -> None:
152 self.assert_emit(Assign(self.n, Integer(5)), "cpy_r_n = 10;")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
ReturnClass · 0.90

Tested by

no test coverage detected