Three hyperedges, one per member-key spelling: nodes / members / node_ids.
()
| 274 | # --------------------------------------------------------------------------- |
| 275 | |
| 276 | def _alias_extraction(): |
| 277 | """Three hyperedges, one per member-key spelling: nodes / members / node_ids.""" |
| 278 | return { |
| 279 | "nodes": [ |
| 280 | {"id": "a", "label": "A", "file_type": "code", "source_file": "m.py"}, |
| 281 | {"id": "b", "label": "B", "file_type": "code", "source_file": "m.py"}, |
| 282 | {"id": "c", "label": "C", "file_type": "code", "source_file": "m.py"}, |
| 283 | ], |
| 284 | "edges": [], |
| 285 | "hyperedges": [ |
| 286 | {"id": "he_nodes", "label": "canon", "nodes": ["a", "b", "c"]}, |
| 287 | {"id": "he_members", "label": "alias1", "members": ["a", "b", "c"]}, |
| 288 | {"id": "he_node_ids", "label": "alias2", "node_ids": ["a", "b", "c"]}, |
| 289 | ], |
| 290 | } |
| 291 | |
| 292 | |
| 293 | def test_build_normalizes_member_aliases_to_nodes(): |
no outgoing calls
no test coverage detected