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

Method run

tests/test_coverage_terminal.py:103–113  ·  view source on GitHub ↗
(self, directory, label, argv, environment, success=False)

Source from the content-addressed store, hash-verified

101 self.admitted.add(key)
102
103 def run(self, directory, label, argv, environment, success=False):
104 self.charge("process", label)
105 record = self.common.run_process(directory, label, argv, environment)
106 record["evidence_directory"] = str(directory)
107 record["process_receipt"] = str(directory / (label + ".process.json"))
108 require(not record["failure"] and record["quiescent"]
109 and type(record["returncode"]) is int and record["returncode"] >= 0,
110 "process infrastructure failure: " + label)
111 if success:
112 require(record["returncode"] == 0, "native tool/control failed: " + label)
113 return record
114
115 def log(self, directory, record, kind):
116 return self.common.ANSI.sub("", self.common.read_log(directory, record, kind))

Callers 15

countMethod · 0.95
reduceMethod · 0.95
caseMethod · 0.95
mainFunction · 0.95
_verify_candidateFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
windows_taskkill_treeFunction · 0.45
dry_commandsFunction · 0.45
make_varFunction · 0.45
find_llvm_toolFunction · 0.45

Calls 4

chargeMethod · 0.95
strFunction · 0.85
requireFunction · 0.70
typeFunction · 0.50

Tested by

no test coverage detected