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

Method test_new_dict

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

Source from the content-addressed store, hash-verified

645 )
646
647 def test_new_dict(self) -> None:
648 self.assert_emit(
649 CallC(
650 dict_new_op.c_function_name,
651 [],
652 dict_new_op.return_type,
653 dict_new_op.steals,
654 dict_new_op.is_borrowed,
655 dict_new_op.error_kind,
656 1,
657 ),
658 """cpy_r_r0 = PyDict_New();""",
659 )
660
661 def test_dict_contains(self) -> None:
662 self.assert_emit_binary_op(

Callers

nothing calls this directly

Calls 2

assert_emitMethod · 0.95
CallCClass · 0.90

Tested by

no test coverage detected