MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ei_edge_present

Function ei_edge_present

tests/test_edge_imports.c:142–151  ·  view source on GitHub ↗

Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on * failure so failures are self-diagnosable without re-running manually. */

Source from the content-addressed store, hash-verified

140/* Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on
141 * failure so failures are self-diagnosable without re-running manually. */
142static 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

Callers 1

Calls 3

ei_index_filesFunction · 0.85
ei_cleanupFunction · 0.85

Tested by

no test coverage detected