MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _extract

Function _extract

tests/test_cpp_method_declarations.py:27–37  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

25
26
27def _extract(tmp_path, files: dict[str, str]) -> dict:
28 for name, body in files.items():
29 p = tmp_path / name
30 p.parent.mkdir(parents=True, exist_ok=True)
31 p.write_text(body)
32 old = os.getcwd()
33 try:
34 os.chdir(tmp_path)
35 return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp()))
36 finally:
37 os.chdir(old)
38
39
40def _rel(r: dict, relation: str, src: str, tgt: str) -> bool:

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected