MCPcopy Create free account
hub / github.com/comaps/comaps / do

Function do

tools/python/maps_generator/checks/check_addresses.py:20–30  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

18 addresses of BuildAddressTable between old logs and new logs.
19 """
20 def do(path: str):
21 log = logs_reader.Log(path)
22 if not log.is_mwm_log:
23 return None
24
25 found = logs_reader.find_and_parse(log.lines, ADDR_PATTERN)
26 if not found:
27 return None
28
29 d = found[0][0]
30 return float(d["matched_percent"])
31
32 return check.build_check_set_for_files(
33 "Addresses check", old_path, new_path, ext=".log", do=do

Callers

nothing calls this directly

Calls 1

LogMethod · 0.45

Tested by

no test coverage detected