(path: str)
| 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 |