MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / __init__

Method __init__

tests/test_coverage_terminal.py:65–91  ·  view source on GitHub ↗
(self, args, root, receipt)

Source from the content-addressed store, hash-verified

63
64class Proof:
65 def __init__(self, args, root, receipt):
66 self.common = guarded_import(args.helper, HELPER_SHA, "terminal_verified_helpers")
67 require((self.common.DEADLINE, self.common.GRACE, self.common.LOG_CAP) == (60, 5, 1048576),
68 "reviewed process-helper bounds differ")
69 self.root, self.receipt = root, receipt
70 self.work, self.admitted = [], set()
71 receipt["work"] = self.work
72 receipt["processes"] = self.common.PROCESS_RECORDS
73 self.inputs = {}
74 for name, path, executable in (
75 ("runner", args.runner, True), ("profdata", args.llvm_profdata, True),
76 ("reducer", args.reducer, False), ("helper", args.helper, False),
77 ("driver", __file__, False)):
78 self.admit(Path(path).resolve(strict=True))
79 self.inputs[name] = self.common.identity(path, executable)
80 require(self.inputs["helper"]["sha256"] == HELPER_SHA, "helper identity differs")
81 require(self.inputs["reducer"]["sha256"] == REDUCER_SHA, "reducer identity differs")
82 receipt["inputs"] = self.inputs
83 self.runner = self.inputs["runner"]["path"]
84 self.tool = self.inputs["profdata"]["path"]
85 self.environment = os.environ.copy()
86 self.environment["LLVM_PROFILE_FILE"] = "/dev/null"
87 self.environment.pop("CBM_TEST_COVERAGE_DIR", None)
88 self.environment.pop("CBM_TEST_ONLY", None)
89 self.environment.pop("CBM_TEST_ONLY_FILE", None)
90 self.seed = None
91 self.seed_identity = None
92
93 def charge(self, kind, detail):
94 require(len(self.work) < WORK_CAP, "combined finite work cap exhausted")

Callers

nothing calls this directly

Calls 4

admitMethod · 0.95
guarded_importFunction · 0.85
setFunction · 0.85
requireFunction · 0.70

Tested by

no test coverage detected