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

Function _calls

tests/test_python_builtin_call_shadowing_4989.py:31–40  ·  view source on GitHub ↗

Every `calls` edge from a function in source_file to target_file.

(result: dict, source_file: str, target_file: str)

Source from the content-addressed store, hash-verified

29
30
31def _calls(result: dict, source_file: str, target_file: str) -> list[dict]:
32 """Every `calls` edge from a function in source_file to target_file."""
33 nodes = {n["id"]: n for n in result["nodes"]}
34 return [
35 e
36 for e in result["edges"]
37 if e["relation"] == "calls"
38 and nodes[e["source"]].get("source_file") == source_file
39 and nodes[e["target"]].get("source_file") == target_file
40 ]
41
42
43MINIMAL = {

Calls 1

getMethod · 0.45

Tested by

no test coverage detected