(row: sqlite3.Row)
| 957 | |
| 958 | |
| 959 | def stored_diff_target(row: sqlite3.Row) -> dict[str, str] | None: |
| 960 | if not row["diff_target_kind"]: |
| 961 | return None |
| 962 | target = { |
| 963 | "baseRevision": row["diff_base_revision"], |
| 964 | "headRevision": row["diff_head_revision"], |
| 965 | "kind": row["diff_target_kind"], |
| 966 | } |
| 967 | if row["diff_content_digest"]: |
| 968 | target["contentDigest"] = row["diff_content_digest"] |
| 969 | return target |
| 970 | |
| 971 | |
| 972 | def scan_contract(scan: sqlite3.Row) -> dict[str, Any]: |
no outgoing calls
no test coverage detected