| 307 | NULL}; |
| 308 | |
| 309 | static void cp_diag(cbm_store_t *store, const char *project, const char *label) { |
| 310 | if (!store) { fprintf(stderr, " [CP] %s: no graph DB\n", label); return; } |
| 311 | char line[640] = {0}; |
| 312 | for (int i = 0; CP_ALL_EDGE_TYPES[i]; i++) { |
| 313 | int c = cbm_store_count_edges_by_type(store, project, CP_ALL_EDGE_TYPES[i]); |
| 314 | if (c > 0 && strlen(line) < sizeof(line) - 48) { |
| 315 | char one[56]; |
| 316 | snprintf(one, sizeof(one), "%s=%d ", CP_ALL_EDGE_TYPES[i], c); |
| 317 | strncat(line, one, sizeof(line) - strlen(line) - 1); |
| 318 | } |
| 319 | } |
| 320 | fprintf(stderr, " [CP] %s edges=[%s]\n", label, line[0] ? line : "(none)"); |
| 321 | } |
| 322 | |
| 323 | /* Helper: index N meaningful files plus enough Python pad files to force |
| 324 | * the parallel pipeline path (MIN_FILES_FOR_PARALLEL = 50). */ |
no test coverage detected