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

Function _has_node

tests/test_ts_generators.py:20–22  ·  view source on GitHub ↗
(result: dict, file: str, sym: str)

Source from the content-addressed store, hash-verified

18
19
20def _has_node(result: dict, file: str, sym: str) -> bool:
21 nid = _make_id(_file_stem(Path(file)), sym)
22 return any(n["id"] == nid for n in result["nodes"])
23
24
25def _contains(result: dict, file: str, sym: str) -> bool:

Calls 2

_make_idFunction · 0.90
_file_stemFunction · 0.90

Tested by

no test coverage detected