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

Function _contains

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

Source from the content-addressed store, hash-verified

23
24
25def _contains(result: dict, file: str, sym: str) -> bool:
26 tgt = _make_id(_file_stem(Path(file)), sym)
27 return any(
28 e["target"] == tgt and e["relation"] == "contains"
29 for e in result["edges"]
30 )
31
32
33def test_generator_declaration_is_node_ts(tmp_path):

Callers 1

Calls 2

_make_idFunction · 0.90
_file_stemFunction · 0.90

Tested by

no test coverage detected