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

Function test_dangling_edge_source

tests/test_validate.py:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 assert any("confidence" in e for e in errors)
97
98def test_dangling_edge_source():
99 data = {
100 "nodes": [{"id": "n1", "label": "A", "file_type": "code", "source_file": "a.py"}],
101 "edges": [
102 {"source": "missing_id", "target": "n1", "relation": "calls",
103 "confidence": "EXTRACTED", "source_file": "a.py"},
104 ],
105 }
106 errors = validate_extraction(data)
107 assert any("source" in e and "missing_id" in e for e in errors)
108
109def test_dangling_edge_target():
110 data = {

Callers

nothing calls this directly

Calls 1

validate_extractionFunction · 0.90

Tested by

no test coverage detected