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

Function _edge_labels

tests/test_objc_enum_declarations.py:18–24  ·  view source on GitHub ↗
(result: dict, relation: str)

Source from the content-addressed store, hash-verified

16
17
18def _edge_labels(result: dict, relation: str) -> set[tuple[str, str]]:
19 labels = {node["id"]: node["label"] for node in result["nodes"]}
20 return {
21 (labels.get(edge["source"], edge["source"]), labels.get(edge["target"], edge["target"]))
22 for edge in result["edges"]
23 if edge["relation"] == relation
24 }
25
26
27def test_objc_plain_enum_emits_type_and_case_of_members(tmp_path):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected