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

Method test_object_annotation

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

Source from the content-addressed store, hash-verified

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' */"
45 assert self.emitter.object_annotation(list(range(30)), "line;") == """\
46 /* [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
47 23, 24, 25, 26, 27, 28, 29] */"""
48
49 def test_emit_line(self) -> None:
50 emitter = self.emitter

Callers

nothing calls this directly

Calls 3

listClass · 0.85
rangeClass · 0.85
object_annotationMethod · 0.80

Tested by

no test coverage detected