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

Method _test_mapping_file_ucm

Lib/test/multibytecodec_support.py:351–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 self._testpoint(csetch, unich)
350
351 def _test_mapping_file_ucm(self):
352 with self.open_mapping_file() as f:
353 ucmdata = f.read()
354 uc = re.findall('<a u="([A-F0-9]{4})" b="([0-9A-F ]+)"/>', ucmdata)
355 for uni, coded in uc:
356 unich = chr(int(uni, 16))
357 codech = bytes.fromhex(coded)
358 self._testpoint(codech, unich)
359
360 def test_mapping_supplemental(self):
361 for mapping in self.supmaps:

Callers 1

test_mapping_fileMethod · 0.95

Calls 4

open_mapping_fileMethod · 0.95
_testpointMethod · 0.95
readMethod · 0.45
findallMethod · 0.45

Tested by 1

test_mapping_fileMethod · 0.76