| 383 | } |
| 384 | |
| 385 | static 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 |
no test coverage detected