| 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, |
| 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 | |
| 219 | static bool te_c_family(const char *path) { |
| 220 | static const char *const ext[] = {".c", ".h", ".cc", ".cpp", ".hpp", |
no test coverage detected