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

Method test_list_get_item

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

Source from the content-addressed store, hash-verified

322 self.assert_emit(DecRef(self.tt), "CPyTagged_DECREF(cpy_r_tt.f0.f0);")
323
324 def test_list_get_item(self) -> None:
325 self.assert_emit(
326 CallC(
327 str(list_get_item_op.c_function_name),
328 [self.m, self.k],
329 list_get_item_op.return_type,
330 list_get_item_op.steals,
331 list_get_item_op.is_borrowed,
332 list_get_item_op.error_kind,
333 55,
334 ),
335 """cpy_r_r0 = CPyList_GetItem(cpy_r_m, cpy_r_k);""",
336 )
337
338 def test_list_set_item(self) -> None:
339 self.assert_emit(

Callers

nothing calls this directly

Calls 3

assert_emitMethod · 0.95
CallCClass · 0.90
strClass · 0.85

Tested by

no test coverage detected