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

Method test_load_None

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

Source from the content-addressed store, hash-verified

156 self.assert_emit(TupleGet(self.t, 1, 0), "cpy_r_r0 = cpy_r_t.f1;")
157
158 def test_load_None(self) -> None: # noqa: N802
159 self.assert_emit(
160 LoadAddress(none_object_op.type, none_object_op.src, 0),
161 "cpy_r_r0 = (PyObject *)&_Py_NoneStruct;",
162 )
163
164 def test_assign_int(self) -> None:
165 self.assert_emit(Assign(self.m, self.n), "cpy_r_m = cpy_r_n;")

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
LoadAddressClass · 0.90

Tested by

no test coverage detected