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

Function te_trigger

src/mcp/test_impact_engine_reach.c:598–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598static bool te_trigger(te_ctx_t *c, const char *suite, bool reached, bool changed, bool rule) {
599 if (!te_is_runner_suite(c, suite)) {
600 return true; /* outside this runner's selection */
601 }
602 if (!te_grow((void **)&c->triggers, &c->trigger_cap, c->trigger_count, sizeof(*c->triggers))) {
603 return te_oom(c);
604 }
605 c->triggers[c->trigger_count++] = (cbm_test_suite_trigger_t){
606 .suite = suite, .reached = reached, .changed = changed, .rule = rule};
607 return true;
608}
609
610static bool te_suite_triggers(te_ctx_t *c, cbm_impact_walk_t *walk) {
611 int n = 0;

Callers 4

te_trigger_file_suitesFunction · 0.85
te_suite_triggersFunction · 0.85
te_rule_triggersFunction · 0.85
te_header_triggersFunction · 0.85

Calls 3

te_is_runner_suiteFunction · 0.85
te_growFunction · 0.85
te_oomFunction · 0.85

Tested by

no test coverage detected