| 136 | "TESTS", "TESTS_FILE", "DATA_FLOWS", NULL}; |
| 137 | |
| 138 | static void mkc_diag(cbm_store_t *store, const char *project, const char *label) { |
| 139 | if (!store) { |
| 140 | fprintf(stderr, " [MKC] %s: no graph DB\n", label); |
| 141 | return; |
| 142 | } |
| 143 | char line[512] = {0}; |
| 144 | for (int i = 0; MKC_ALL_EDGE_TYPES[i]; i++) { |
| 145 | int c = cbm_store_count_edges_by_type(store, project, MKC_ALL_EDGE_TYPES[i]); |
| 146 | if (c > 0 && strlen(line) < sizeof(line) - 40) { |
| 147 | char one[48]; |
| 148 | snprintf(one, sizeof(one), "%s=%d ", MKC_ALL_EDGE_TYPES[i], c); |
| 149 | strncat(line, one, sizeof(line) - strlen(line) - 1); |
| 150 | } |
| 151 | } |
| 152 | fprintf(stderr, " [MKC] %s edges=[%s]\n", label, line[0] ? line : "(none)"); |
| 153 | } |
| 154 | |
| 155 | /* Index files, assert edge_type appears >= floor times. |
| 156 | * is_green=1: this is a green guard (regression if it fails). |
no test coverage detected