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

Function _has_edge

tests/test_python_import_resolution.py:31–37  ·  view source on GitHub ↗
(result: dict, source: str, target: str, relation: str)

Source from the content-addressed store, hash-verified

29
30
31def _has_edge(result: dict, source: str, target: str, relation: str) -> bool:
32 return any(
33 edge["source"] == source
34 and edge["target"] == target
35 and edge["relation"] == relation
36 for edge in result["edges"]
37 )
38
39
40@pytest.mark.parametrize(("import_line", "receiver", "target"), [

Calls

no outgoing calls

Tested by

no test coverage detected