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

Function te_steps

src/mcp/test_impact_engine.c:582–602  ·  view source on GitHub ↗

The evidence steps. Each false is either a recorded run-all reason (the * answer still comes) or exhausted memory (c->oom). */

Source from the content-addressed store, hash-verified

580/* The evidence steps. Each false is either a recorded run-all reason (the
581 * answer still comes) or exhausted memory (c->oom). */
582static 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
604typedef struct {
605 const cbm_test_impact_request_t *request;

Callers 1

te_job_mainFunction · 0.85

Calls 13

te_work_dirFunction · 0.85
te_gitFunction · 0.85
te_configFunction · 0.85
te_classify_rulesFunction · 0.85
te_artifact_graphFunction · 0.85
te_snapshotFunction · 0.85
te_artifact_coverageFunction · 0.85
te_classify_unmatchedFunction · 0.85
te_open_scopeFunction · 0.85
te_seedFunction · 0.85
te_reachFunction · 0.85
te_coverage_idsFunction · 0.85

Tested by

no test coverage detected