(scan: sqlite3.Row)
| 997 | |
| 998 | |
| 999 | def expected_coverage_mode(scan: sqlite3.Row) -> str: |
| 1000 | if scan["mode"] == "diff": |
| 1001 | mode = { |
| 1002 | "commit": "commit", |
| 1003 | "range": "branch_diff", |
| 1004 | "working_tree": "working_tree", |
| 1005 | }.get(scan["diff_target_kind"]) |
| 1006 | if mode is None: |
| 1007 | raise SystemExit("This migrated diff scan does not have a validated change set.") |
| 1008 | return mode |
| 1009 | if scan["scope"] != ".": |
| 1010 | return "scoped_path" |
| 1011 | return "deep_repository" if scan["mode"] == "deep" else "repository" |
| 1012 | |
| 1013 | |
| 1014 | def verify_manifest_binding(scan: sqlite3.Row, manifest: dict[str, Any]) -> None: |
no test coverage detected