MCPcopy Index your code
hub / github.com/openai/plugins / expected_coverage_mode

Function expected_coverage_mode

plugins/codex-security/scripts/workbench_db.py:999–1011  ·  view source on GitHub ↗
(scan: sqlite3.Row)

Source from the content-addressed store, hash-verified

997
998
999def 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
1014def verify_manifest_binding(scan: sqlite3.Row, manifest: dict[str, Any]) -> None:

Callers 3

complete_scan_lockedFunction · 0.85
export_findingsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected