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

Function ei_edge_present

tests/test_edge_imports.c:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259static int ei_edge_present(const EILangFile *files, int nfiles, const char *edge_type, int floor) {
260 EILangProj lp;
261 cbm_store_t *store = ei_index_files(&lp, files, nfiles);
262 int got = store ? cbm_store_count_edges_by_type(store, lp.project, edge_type) : -1;
263 if (got < floor) {
264 fprintf(stderr, " [%s] FAIL count=%d expected>=%d\n", edge_type, got, floor);
265 }
266 ei_cleanup(&lp, store);
267 return got >= floor;
268}
269
270/* ═══════════════════════════════════════════════════════════════════════════
271 * GREEN GUARD — Python

Callers 1

Calls 3

ei_index_filesFunction · 0.85
ei_cleanupFunction · 0.85

Tested by

no test coverage detected