| 192 | /* ── Classification of the changed paths ─────────────────────────── */ |
| 193 | |
| 194 | static 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 | |
| 207 | static 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, |
no test coverage detected