Helper to check suffix. */
| 53 | |
| 54 | /* Helper to check suffix. */ |
| 55 | static bool str_ends_with(const char *s, size_t slen, const char *suffix) { |
| 56 | size_t sflen = strlen(suffix); |
| 57 | return slen >= sflen && strcmp(s + slen - sflen, suffix) == 0; |
| 58 | } |
| 59 | |
| 60 | /* Check if a file path looks like a test file (language-agnostic). */ |
| 61 | bool cbm_is_test_path(const char *path) { |