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

Method test_goto_next_block

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

Source from the content-addressed store, hash-verified

142 self.assert_emit(Goto(BasicBlock(2)), "goto CPyL2;")
143
144 def test_goto_next_block(self) -> None:
145 next_block = BasicBlock(2)
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;")

Callers

nothing calls this directly

Calls 3

assert_emitMethod · 0.95
BasicBlockClass · 0.90
GotoClass · 0.90

Tested by

no test coverage detected