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

Method setUp

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

Source from the content-addressed store, hash-verified

1053
1054class TestGenerateFunction(unittest.TestCase):
1055 def setUp(self) -> None:
1056 self.arg = RuntimeArg("arg", int_rprimitive)
1057 self.reg = Register(int_rprimitive, "arg")
1058 self.block = BasicBlock(0)
1059
1060 def test_simple(self) -> None:
1061 self.block.ops.append(Return(self.reg))

Callers

nothing calls this directly

Calls 3

RuntimeArgClass · 0.90
RegisterClass · 0.90
BasicBlockClass · 0.90

Tested by

no test coverage detected