MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_shared_key_dict

Method make_shared_key_dict

Lib/test/test_dict.py:972–982  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

970 self.assertIs(ref(), None, "Cycle was not collected")
971
972 def make_shared_key_dict(self, n):
973 class C:
974 pass
975
976 dicts = []
977 for i in range(n):
978 a = C()
979 a.x, a.y, a.z = 1, 2, 3
980 dicts.append(a.__dict__)
981
982 return dicts
983
984 @support.cpython_only
985 def test_splittable_setdefault(self):

Callers 5

test_splittable_delMethod · 0.95
test_splittable_popMethod · 0.95

Calls 2

CClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected