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

Function te_select

src/mcp/test_impact_engine.c:385–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385static bool te_select(te_ctx_t *c) {
386 cbm_test_selection_input_t input = {.model = c->model,
387 .reach = c->reach,
388 .reach_count = c->reach_count,
389 .suite_triggers = c->triggers,
390 .suite_trigger_count = c->trigger_count,
391 .has_changes = c->has_changes,
392 .diff_complete = c->diff_complete,
393 .inventory_complete = c->snapshot_ok,
394 .static_complete = c->static_complete,
395 .coverage = c->coverage_admitted ? c->coverage : NULL,
396 .changed_function_ids = c->cov_ids,
397 .changed_function_count = c->cov_count,
398 .coverage_admitted = c->coverage_admitted,
399 .coverage_changes_complete = c->cov_complete};
400 c->selection = cbm_test_select(&input);
401 if (!c->selection) {
402 return te_fallback(c, CBM_TEST_RESULT_FALLBACK_SELECTION_UNAVAILABLE,
403 "the selection could not be computed");
404 }
405 return true;
406}
407
408/* ── The answer ──────────────────────────────────────────────────── */
409

Callers 1

te_stepsFunction · 0.85

Calls 2

cbm_test_selectFunction · 0.85
te_fallbackFunction · 0.85

Tested by

no test coverage detected