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

Method test_dict_get_item

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

Source from the content-addressed store, hash-verified

603 )
604
605 def test_dict_get_item(self) -> None:
606 self.assert_emit(
607 CallC(
608 str(dict_get_item_op.c_function_name),
609 [self.d, self.o2],
610 dict_get_item_op.return_type,
611 dict_get_item_op.steals,
612 dict_get_item_op.is_borrowed,
613 dict_get_item_op.error_kind,
614 1,
615 ),
616 """cpy_r_r0 = CPyDict_GetItem(cpy_r_d, cpy_r_o2);""",
617 )
618
619 def test_dict_set_item(self) -> None:
620 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