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

Function te_fixture_path

src/mcp/test_impact_engine.c:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,
209 sizeof(*c->fixture_paths)) ||
210 !te_grow((void **)&c->fixture_rules, &c->fixture_rule_cap, c->fixture_count,
211 sizeof(*c->fixture_rules))) {
212 return te_oom(c);
213 }
214 c->fixture_paths[c->fixture_count] = path;
215 c->fixture_rules[c->fixture_count++] = rule_index;
216 return true;
217}
218
219static bool te_c_family(const char *path) {
220 static const char *const ext[] = {".c", ".h", ".cc", ".cpp", ".hpp",

Callers 1

te_classify_rulesFunction · 0.85

Calls 2

te_growFunction · 0.85
te_oomFunction · 0.85

Tested by

no test coverage detected