MCPcopy Index your code
hub / github.com/python/cpython / _empty_mapping

Method _empty_mapping

Lib/test/mapping_tests.py:19–21  ·  view source on GitHub ↗

Return an empty mapping object

(self)

Source from the content-addressed store, hash-verified

17 in the object under test."""
18 return {"1": "2", "key1":"value1", "key2":(1,2,3)}
19 def _empty_mapping(self):
20 """Return an empty mapping object"""
21 return self.type2test()
22 def _full_mapping(self, data):
23 """Return a mapping object with the values contained in data
24 dictionary"""

Callers 15

test_readMethod · 0.95
test_constructorMethod · 0.95
test_boolMethod · 0.95
test_keysMethod · 0.95
test_valuesMethod · 0.95
test_itemsMethod · 0.95
test_lenMethod · 0.95
test_getMethod · 0.95
_full_mappingMethod · 0.45
test_writeMethod · 0.45
test_updateMethod · 0.45
test_setdefaultMethod · 0.45

Calls 1

type2testMethod · 0.80

Tested by

no test coverage detected