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

Function _extract

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

Source from the content-addressed store, hash-verified

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

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected