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

Function _resolve

tests/test_python_member_call_language_gate.py:53–60  ·  view source on GitHub ↗
(caller_file, class_label, class_file, receiver="Inner")

Source from the content-addressed store, hash-verified

51
52
53def _resolve(caller_file, class_label, class_file, receiver="Inner"):
54 c_nodes, c_edges, caller_nid = _caller("use", caller_file)
55 k_nodes, k_edges, method_nid = _class_with_method("inner", class_label, class_file)
56 nodes, edges = c_nodes + k_nodes, c_edges + k_edges
57 raw = _member_call(caller_nid, receiver, "go", caller_file)
58 _resolve_python_member_calls([{"raw_calls": [raw]}], nodes, edges)
59 return [e for e in edges if e.get("relation") == "calls"
60 and e["source"] == caller_nid and e["target"] == method_nid]
61
62
63def test_swift_caller_does_not_bind_python_class():

Calls 5

_class_with_methodFunction · 0.85
_member_callFunction · 0.85
_callerFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected