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

Function _extract

tests/test_cpp_receiver_chains.py:23–29  ·  view source on GitHub ↗
(tmp_path, source, header=HEADER, reverse=False)

Source from the content-addressed store, hash-verified

21
22
23def _extract(tmp_path, source, header=HEADER, reverse=False):
24 paths = [tmp_path / "types.hpp", tmp_path / "use.cpp"]
25 paths[0].write_text(header, encoding="utf-8")
26 paths[1].write_text('#include "types.hpp"\n' + source, encoding="utf-8")
27 result = extract(paths[::-1] if reverse else paths, root=tmp_path,
28 cache_root=tmp_path / "cache", parallel=False)
29 return paths, result
30
31
32def _calls(result, caller="Run()"):

Calls 1

extractFunction · 0.90

Tested by

no test coverage detected