| 365 | } |
| 366 | |
| 367 | static 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 | |
| 385 | static bool te_select(te_ctx_t *c) { |
| 386 | cbm_test_selection_input_t input = {.model = c->model, |
no test coverage detected