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

Function _extract

tests/test_cpp_forward_receiver_completion.py:15–23  ·  view source on GitHub ↗
(tmp_path, client, caller, worker="struct Worker { void Run(); };", extra=None)

Source from the content-addressed store, hash-verified

13
14
15def _extract(tmp_path, client, caller, worker="struct Worker { void Run(); };", extra=None):
16 files = {"client.hpp": client, "worker.hpp": worker, "use.cpp": caller}
17 files.update(extra or {})
18 paths = []
19 for name, text in files.items():
20 path = tmp_path / name
21 path.write_text(text, encoding="utf-8")
22 paths.append(path)
23 return paths, extract(paths, root=tmp_path, cache_root=tmp_path / "cache", parallel=False)
24
25
26def _calls(result):

Calls 3

extractFunction · 0.90
updateMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected