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

Function _owner_of

tests/test_java_member_calls.py:559–562  ·  view source on GitHub ↗
(result: dict, method_nid: str)

Source from the content-addressed store, hash-verified

557
558
559def _owner_of(result: dict, method_nid: str) -> str:
560 nodes = {n["id"]: n for n in result["nodes"]}
561 return next(nodes[e["source"]]["label"] for e in result["edges"]
562 if e["relation"] == "method" and e["target"] == method_nid)
563
564
565def _call_owners(calls, result: dict, caller: str) -> set[tuple[str, str]]:

Callers 1

_call_ownersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected