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

Method test_reg

mypyc/test/test_emit.py:38–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 assert self.emitter.label(BasicBlock(4)) == "CPyL4"
37
38 def test_reg(self) -> None:
39 names: dict[Value, str] = {self.n: "n"}
40 emitter = Emitter(self.context, names)
41 assert emitter.reg(self.n) == "cpy_r_n"
42
43 def test_object_annotation(self) -> None:
44 assert self.emitter.object_annotation("hello, world", "line;") == " /* 'hello, world' */"

Callers

nothing calls this directly

Calls 2

regMethod · 0.95
EmitterClass · 0.90

Tested by

no test coverage detected