Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on * failure so failures are self-diagnosable without re-running manually. */
| 140 | /* Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on |
| 141 | * failure so failures are self-diagnosable without re-running manually. */ |
| 142 | static int ei_edge_present(const EILangFile *files, int nfiles, const char *edge_type, int floor) { |
| 143 | EILangProj lp; |
| 144 | cbm_store_t *store = ei_index_files(&lp, files, nfiles); |
| 145 | int got = store ? cbm_store_count_edges_by_type(store, lp.project, edge_type) : -1; |
| 146 | if (got < floor) { |
| 147 | fprintf(stderr, " [%s] FAIL count=%d expected>=%d\n", edge_type, got, floor); |
| 148 | } |
| 149 | ei_cleanup(&lp, store); |
| 150 | return got >= floor; |
| 151 | } |
| 152 | |
| 153 | /* ═══════════════════════════════════════════════════════════════════════════ |
| 154 | * GREEN GUARD — Python |
no test coverage detected