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

Function _extract

tests/test_ts_parse_warning.py:20–32  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

18
19
20def _extract(tmp_path, files: dict[str, str]):
21 for name, body in files.items():
22 p = tmp_path / name
23 p.parent.mkdir(parents=True, exist_ok=True)
24 p.write_text(body)
25 old = os.getcwd()
26 try:
27 os.chdir(tmp_path)
28 r = extract([Path(n) for n in files],
29 cache_root=tmp_path / ".cache", parallel=False)
30 finally:
31 os.chdir(old)
32 return r
33
34
35def _labels(r):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected