(explain: str)
| 3346 | return table_since, index_since |
| 3347 | |
| 3348 | def parse_since_from_explain(explain: str) -> int: |
| 3349 | since_line = re.compile(r"\s*read frontier:\[(?P<since>\d+) \(.+\)\]") |
| 3350 | for line in explain.splitlines(): |
| 3351 | if match := since_line.match(line): |
| 3352 | return int(match.group("since")) |
| 3353 | |
| 3354 | raise AssertionError(f"since not found in explain: {explain}") |
| 3355 | |
| 3356 | def validate_since(since: int, name: str) -> None: |
| 3357 | now = datetime.now() |
no test coverage detected