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

Method test_unbox_i64

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

Source from the content-addressed store, hash-verified

367 self.assert_emit(Box(self.i64), """cpy_r_r0 = PyLong_FromLongLong(cpy_r_i64);""")
368
369 def test_unbox_i64(self) -> None:
370 self.assert_emit(
371 Unbox(self.o, int64_rprimitive, 55), """cpy_r_r0 = CPyLong_AsInt64(cpy_r_o);"""
372 )
373
374 def test_box_vec(self) -> None:
375 self.assert_emit(Box(self.vi64), """cpy_r_r0 = VecI64Api.box(cpy_r_vi64);""")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
UnboxClass · 0.90

Tested by

no test coverage detected