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

Function _extract

tests/test_cpp_underscore_ids.py:18–25  ·  view source on GitHub ↗
(tmp_path: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

16
17
18def _extract(tmp_path: Path, files: dict[str, str]) -> dict:
19 paths = []
20 for rel, text in files.items():
21 p = tmp_path / rel
22 p.parent.mkdir(parents=True, exist_ok=True)
23 p.write_text(text, encoding="utf-8")
24 paths.append(p)
25 return extract(paths, cache_root=tmp_path, root=tmp_path)
26
27
28def _ids_by_label(result: dict, source_file: str) -> dict[str, list[str]]:

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected