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

Function merge_profile

tests/test_coverage_flush.py:199–212  ·  view source on GitHub ↗
(case, raw, name, tool, environment)

Source from the content-addressed store, hash-verified

197
198
199def merge_profile(case, raw, name, tool, environment):
200 output = case / (name + ".profdata")
201 result = {"raw": str(raw), "merged": str(output), "valid": False}
202 if not regular_nonempty(raw):
203 result["failure"] = "raw profile is not a regular nonempty file"
204 return result
205 command = [tool, "merge", "--instr", "--output=" + str(output), str(raw)]
206 result["process"] = run_process(case, "merge-" + name, command, environment)
207 process = result["process"]
208 result["valid"] = (not process["failure"] and process["returncode"] == 0
209 and regular_nonempty(output))
210 if not result["valid"]:
211 result["failure"] = "matching llvm-profdata did not validate the raw profile"
212 return result
213
214
215def classify(case, mode, process, obstacle):

Callers 1

run_caseFunction · 0.85

Calls 3

strFunction · 0.85
regular_nonemptyFunction · 0.70
run_processFunction · 0.70

Tested by

no test coverage detected