| 91 | } pr_index_t; |
| 92 | |
| 93 | static bool pr_test_path(const char *path) { |
| 94 | if (cbm_is_test_file(path, CBM_LANG_PERL)) { |
| 95 | return true; |
| 96 | } |
| 97 | size_t n = strlen(path); |
| 98 | if (n >= PAIR_LEN && strcmp(path + n - PAIR_LEN, ".t") == 0) { |
| 99 | return true; |
| 100 | } |
| 101 | return strncmp(path, "t/", PAIR_LEN) == 0 || strncmp(path, "xt/", CBM_SZ_3) == 0 || |
| 102 | strstr(path, "/t/") != NULL || strstr(path, "/xt/") != NULL; |
| 103 | } |
| 104 | |
| 105 | /* One record line of a blob: its fields, split at tabs (at most `cap`). */ |
| 106 | static int pr_fields(const char *b, const char *e, const char **f, size_t *fl, int cap) { |
no test coverage detected