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

Function _extract

tests/test_python_imported_call_caller_collision.py:39–50  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

37
38
39def _extract(tmp_path, files: dict[str, str]):
40 for name, body in files.items():
41 p = tmp_path / name
42 p.parent.mkdir(parents=True, exist_ok=True)
43 p.write_text(body)
44 old = os.getcwd()
45 try:
46 os.chdir(tmp_path)
47 paths = [Path(n).resolve() for n in files]
48 return extract(paths, root=tmp_path.resolve(), cache_root=Path(tempfile.mkdtemp()))
49 finally:
50 os.chdir(old)
51
52
53def _call_edges(result, labels):

Calls 3

extractFunction · 0.90
itemsMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected