The evidence steps. Each false is either a recorded run-all reason (the * answer still comes) or exhausted memory (c->oom). */
| 580 | /* The evidence steps. Each false is either a recorded run-all reason (the |
| 581 | * answer still comes) or exhausted memory (c->oom). */ |
| 582 | static void te_steps(te_ctx_t *c) { |
| 583 | if (!te_work_dir(c) || !te_git(c) || !te_config(c)) { |
| 584 | return; |
| 585 | } |
| 586 | if (!c->has_changes || !c->diff_complete) { |
| 587 | return; /* nothing changed, or the change is not known in full */ |
| 588 | } |
| 589 | bool need_snapshot = false; |
| 590 | bool *unmatched = NULL; |
| 591 | if (!te_classify_rules(c, &need_snapshot, &unmatched) || !need_snapshot) { |
| 592 | return; |
| 593 | } |
| 594 | if (!te_artifact_graph(c) || !te_snapshot(c) || !te_artifact_coverage(c) || |
| 595 | !te_classify_unmatched(c, unmatched) || c->fallback_count) { |
| 596 | return; |
| 597 | } |
| 598 | if (!te_open_scope(c) || !te_seed(c) || !te_reach(c) || !te_coverage_ids(c)) { |
| 599 | return; |
| 600 | } |
| 601 | (void)te_select(c); |
| 602 | } |
| 603 | |
| 604 | typedef struct { |
| 605 | const cbm_test_impact_request_t *request; |
no test coverage detected