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

Function test_pascal_inherits_from_base

tests/test_pascal.py:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76def 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
88def test_pascal_finds_calls():

Callers

nothing calls this directly

Calls 2

extract_pascalFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected