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

Function te_seed

src/mcp/test_impact_engine.c:367–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367static bool te_seed(te_ctx_t *c) {
368 cbm_ti_seed_input_t in = {.changes = c->seed_changes,
369 .change_count = c->seed_change_count,
370 .model = c->model,
371 .graph = c->graph,
372 .source = c->source};
373 cbm_ti_seed_status_t status = cbm_ti_seed(&in, &c->seeds);
374 if (status == CBM_TI_SEED_OOM) {
375 return te_oom(c);
376 }
377 if (status != CBM_TI_SEED_OK) {
378 return te_fallback(c, CBM_TEST_RESULT_FALLBACK_GRAPH_UNAVAILABLE,
379 "seeding the graph failed") &&
380 false;
381 }
382 return true;
383}
384
385static bool te_select(te_ctx_t *c) {
386 cbm_test_selection_input_t input = {.model = c->model,

Callers 1

te_stepsFunction · 0.85

Calls 3

cbm_ti_seedFunction · 0.85
te_oomFunction · 0.85
te_fallbackFunction · 0.85

Tested by

no test coverage detected