MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / pr_test_path

Function pr_test_path

src/pipeline/doc_links_perl.c:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91} pr_index_t;
92
93static 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`). */
106static int pr_fields(const char *b, const char *e, const char **f, size_t *fl, int cap) {

Callers 1

pr_index_filesFunction · 0.85

Calls 1

cbm_is_test_fileFunction · 0.85

Tested by

no test coverage detected