()
| 96 | assert any("confidence" in e for e in errors) |
| 97 | |
| 98 | def 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 | |
| 109 | def test_dangling_edge_target(): |
| 110 | data = { |
nothing calls this directly
no test coverage detected