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

Method _full_mapping

Lib/test/mapping_tests.py:146–152  ·  view source on GitHub ↗

Return a mapping object with the values contained in data dictionary

(self, data)

Source from the content-addressed store, hash-verified

144
145class BasicTestMappingProtocol(BasicTestImmutableMappingProtocol):
146 def _full_mapping(self, data):
147 """Return a mapping object with the values contained in data
148 dictionary"""
149 x = self._empty_mapping()
150 for key, value in data.items():
151 x[key] = value
152 return x
153
154 def test_write(self):
155 # Test for write operations on mapping

Callers 15

test_writeMethod · 0.95
test_boolMethod · 0.45
test_keysMethod · 0.45
test_valuesMethod · 0.45
test_itemsMethod · 0.45
test_containsMethod · 0.45
test_lenMethod · 0.45
test_getitemMethod · 0.45
test_clearMethod · 0.45
test_updateMethod · 0.45
test_copyMethod · 0.45
test_getMethod · 0.45

Calls 2

_empty_mappingMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected