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

Function _calls

tests/test_python_external_import_calls.py:18–29  ·  view source on GitHub ↗
(result: dict, context_nodes: list[dict] | None = None)

Source from the content-addressed store, hash-verified

16
17
18def _calls(result: dict, context_nodes: list[dict] | None = None) -> set[tuple[str, str, str, str]]:
19 nodes = {node["id"]: node for node in [*(context_nodes or []), *result["nodes"]]}
20 return {
21 (
22 nodes[edge["source"]]["label"],
23 nodes[edge["target"]]["label"],
24 nodes[edge["target"]]["source_file"],
25 edge["confidence"],
26 )
27 for edge in result["edges"]
28 if edge["relation"] == "calls"
29 }
30
31
32@pytest.mark.parametrize(

Calls

no outgoing calls

Tested by

no test coverage detected