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

Function te_classify_unmatched

src/mcp/test_impact_engine.c:326–342  ·  view source on GitHub ↗

Second pass: a path no rule matched is read through the graph when it is * a C-family source of the snapshot (or deleted from it); anything else is a * change the test-runner lane cannot reason about (M-10): run everything. */

Source from the content-addressed store, hash-verified

324 * a C-family source of the snapshot (or deleted from it); anything else is a
325 * change the test-runner lane cannot reason about (M-10): run everything. */
326static bool te_classify_unmatched(te_ctx_t *c, const bool *unmatched) {
327 size_t count = 0;
328 const cbm_change_file_t *files = cbm_changes_files(c->changes, &count);
329 for (size_t i = 0; i < count; i++) {
330 if (!unmatched[i]) {
331 continue;
332 }
333 const char *path = (const char *)files[i].path;
334 bool readable = te_c_family(path) && (files[i].status == 'D' || te_in_ledger(c, path));
335 bool ok = readable ? te_add_seed_change(c, &files[i])
336 : te_fallback(c, CBM_TEST_RESULT_FALLBACK_UNMAPPED_FILE, path);
337 if (!ok) {
338 return false;
339 }
340 }
341 return true;
342}
343
344/* ── Graph scope, seeding, selection ─────────────────────────────── */
345

Callers 1

te_stepsFunction · 0.85

Calls 5

cbm_changes_filesFunction · 0.85
te_c_familyFunction · 0.85
te_in_ledgerFunction · 0.85
te_add_seed_changeFunction · 0.85
te_fallbackFunction · 0.85

Tested by

no test coverage detected