()
| 74 | |
| 75 | |
| 76 | def test_pascal_inherits_from_base(): |
| 77 | from graphify.extract import extract_pascal |
| 78 | r = extract_pascal(FIXTURES / "sample.pas") |
| 79 | node_by_id = {n["id"]: n["label"] for n in r["nodes"]} |
| 80 | inherits = [e for e in r["edges"] if e["relation"] == "inherits"] |
| 81 | found = any( |
| 82 | "TDataProcessor" in node_by_id.get(e["source"], "") |
| 83 | for e in inherits |
| 84 | ) |
| 85 | assert found, "TDataProcessor should have at least one inherits edge" |
| 86 | |
| 87 | |
| 88 | def test_pascal_finds_calls(): |
nothing calls this directly
no test coverage detected