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

Function _node_id

tests/test_rust_use_self_module.py:53–59  ·  view source on GitHub ↗
(result: dict, source_suffix: str)

Source from the content-addressed store, hash-verified

51
52
53def _node_id(result: dict, source_suffix: str) -> str:
54 return next(
55 node["id"]
56 for node in result["nodes"]
57 if node.get("source_file", "").endswith(source_suffix)
58 and node.get("label") == Path(source_suffix).name
59 )
60
61
62def _import_targets(result: dict, source_id: str, line: int) -> list[str]:

Calls 1

getMethod · 0.45

Tested by

no test coverage detected