A two-unit corpus in the standard Delphi layout, as the merge leaves it. `source_file` is relativised on the nodes, and the `uses Shared` edge points at a target id with NO node: the external stub for a unit the per-file pass could not find is materialised after resolvers run.
()
| 139 | # They are pinned here against the resolver's inputs directly. |
| 140 | |
| 141 | def _corpus() -> tuple[list[dict], list[dict]]: |
| 142 | """A two-unit corpus in the standard Delphi layout, as the merge leaves it. |
| 143 | |
| 144 | `source_file` is relativised on the nodes, and the `uses Shared` edge |
| 145 | points at a target id with NO node: the external stub for a unit the |
| 146 | per-file pass could not find is materialised after resolvers run. |
| 147 | """ |
| 148 | nodes = [ |
| 149 | {"id": "datamodules_shared_pas", "label": "Shared.pas", |
| 150 | "source_file": "DataModules/Shared.pas"}, |
| 151 | {"id": "shared_tshareddm", "label": "TSharedDM", |
| 152 | "source_file": "DataModules/Shared.pas"}, |
| 153 | {"id": "shared_loadperiod", "label": "LoadPeriod()", |
| 154 | "source_file": "DataModules/Shared.pas"}, |
| 155 | {"id": "projects_app_appform_pas", "label": "AppForm.pas", |
| 156 | "source_file": "Projects/App/AppForm.pas"}, |
| 157 | {"id": "appform_tappform", "label": "TAppForm", |
| 158 | "source_file": "Projects/App/AppForm.pas"}, |
| 159 | {"id": "appform_go", "label": "Go()", |
| 160 | "source_file": "Projects/App/AppForm.pas"}, |
| 161 | ] |
| 162 | edges = [ |
| 163 | {"source": "datamodules_shared_pas", "target": "shared_tshareddm", |
| 164 | "relation": "contains"}, |
| 165 | {"source": "shared_tshareddm", "target": "shared_loadperiod", |
| 166 | "relation": "method"}, |
| 167 | {"source": "projects_app_appform_pas", "target": "appform_tappform", |
| 168 | "relation": "contains"}, |
| 169 | {"source": "appform_tappform", "target": "appform_go", "relation": "method"}, |
| 170 | {"source": "projects_app_appform_pas", "target": "shared", "relation": "imports"}, |
| 171 | ] |
| 172 | return nodes, edges |
| 173 | |
| 174 | |
| 175 | def _per_file() -> list[dict]: |
no outgoing calls
no test coverage detected