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

Function te_match

src/mcp/test_impact_engine.c:194–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192/* ── Classification of the changed paths ─────────────────────────── */
193
194static bool te_match(te_ctx_t *c, int rule_index) {
195 for (int i = 0; i < c->match_count; i++) {
196 if (c->matches[i].rule_index == rule_index) {
197 return true;
198 }
199 }
200 if (!te_grow((void **)&c->matches, &c->match_cap, c->match_count, sizeof(*c->matches))) {
201 return te_oom(c);
202 }
203 c->matches[c->match_count++] = (te_match_t){.rule_index = rule_index, .resolved = true};
204 return true;
205}
206
207static bool te_fixture_path(te_ctx_t *c, const char *path, int rule_index) {
208 if (!te_grow((void **)&c->fixture_paths, &c->fixture_cap, c->fixture_count,

Callers 1

te_classify_rulesFunction · 0.85

Calls 2

te_growFunction · 0.85
te_oomFunction · 0.85

Tested by

no test coverage detected