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

Function _python_call_pairs

tests/test_extract.py:2599–2604  ·  view source on GitHub ↗

Extract one Python file and return {(caller_id, callee_id)} for calls edges.

(tmp_path, source)

Source from the content-addressed store, hash-verified

2597
2598
2599def _python_call_pairs(tmp_path, source):
2600 """Extract one Python file and return {(caller_id, callee_id)} for calls edges."""
2601 f = tmp_path / "svc.py"
2602 f.write_text(source, encoding="utf-8")
2603 result = extract([f], cache_root=tmp_path)
2604 return {(e["source"], e["target"]) for e in result["edges"] if e["relation"] == "calls"}
2605
2606
2607def test_python_self_call_binds_to_own_class_not_last_declared(tmp_path):

Calls 1

extractFunction · 0.90

Tested by

no test coverage detected