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

Function _extract

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

Source from the content-addressed store, hash-verified

48
49
50def _extract(tmp_path, files: dict[str, str]):
51 for name, body in files.items():
52 p = tmp_path / name
53 p.parent.mkdir(parents=True, exist_ok=True)
54 p.write_text(body)
55 old = os.getcwd()
56 try:
57 os.chdir(tmp_path)
58 return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp()))
59 finally:
60 os.chdir(old)
61
62
63def _by_line(r, label):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected