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

Function _deco_edges

tests/test_python_decorators.py:42–50  ·  view source on GitHub ↗

Decorator-reference edge targets emitted from owner_nid.

(result: dict, owner_nid: str)

Source from the content-addressed store, hash-verified

40
41
42def _deco_edges(result: dict, owner_nid: str) -> set[str]:
43 """Decorator-reference edge targets emitted from owner_nid."""
44 return {
45 e["target"]
46 for e in result["edges"]
47 if e["source"] == owner_nid
48 and e["relation"] == "references"
49 and e.get("context") == "decorator"
50 }
51
52
53def test_module_level_function_decorator(tmp_path):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected