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

Function _extract

tests/test_java_overloads.py:43–53  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

41
42
43def _extract(tmp_path, files: dict[str, str]):
44 for name, body in files.items():
45 p = tmp_path / name
46 p.parent.mkdir(parents=True, exist_ok=True)
47 p.write_text(body)
48 old = os.getcwd()
49 try:
50 os.chdir(tmp_path)
51 return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp()))
52 finally:
53 os.chdir(old)
54
55
56def _methods(r, label):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected