| 1419 | if (mask == EVAL_SUITE_HARD) return "hard"; |
| 1420 | if (mask == (EVAL_SUITE_CORE | EVAL_SUITE_HARD)) return "all"; |
| 1421 | if (mask == EVAL_SUITE_HARD_SMOKE) return "hard-smoke"; |
| 1422 | return "custom"; |
| 1423 | } |
| 1424 | |
| 1425 | static bool eval_case_matches_filters(const eval_case *tc, |
| 1426 | const eval_config *cfg) { |
| 1427 | if (cfg->source_filter && strcasecmp(tc->source, cfg->source_filter)) return false; |
| 1428 | if (cfg->domain_filter && strcasecmp(tc->domain, cfg->domain_filter)) return false; |
| 1429 | if (cfg->case_id_filter && strcmp(tc->id, cfg->case_id_filter)) return false; |
| 1430 | return true; |
| 1431 | } |
| 1432 | |
| 1433 | static eval_case *select_eval_cases(const eval_config *cfg, int *count_out) { |
| 1434 | const size_t core_count = eval_core_case_count(); |
no outgoing calls
no test coverage detected