(row: dict[str, str], field: str, *, scan_path: str)
| 307 | |
| 308 | |
| 309 | def parse_nonnegative(row: dict[str, str], field: str, *, scan_path: str) -> int: |
| 310 | value = row[field] |
| 311 | if not value.isdigit(): |
| 312 | raise ContractError(f"VT result has invalid {field}: {scan_path}") |
| 313 | return int(value) |
| 314 | |
| 315 | |
| 316 | def validate_result_row(row: dict[str, str], candidate: dict[str, str]) -> None: |
no test coverage detected