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

Function _node_label

tests/test_ts_namespace.py:19–21  ·  view source on GitHub ↗
(result: dict, file: str, sym: str)

Source from the content-addressed store, hash-verified

17
18
19def _node_label(result: dict, file: str, sym: str):
20 nid = _make_id(_file_stem(Path(file)), sym)
21 return next((n["label"] for n in result["nodes"] if n["id"] == nid), None)
22
23
24def _has_node(result: dict, file: str, sym: str) -> bool:

Callers 3

_has_nodeFunction · 0.70

Calls 2

_make_idFunction · 0.90
_file_stemFunction · 0.90

Tested by

no test coverage detected