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

Function mkc_diag

tests/test_matrix_known_classes.c:138–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 "TESTS", "TESTS_FILE", "DATA_FLOWS", NULL};
137
138static 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).

Callers 1

mkc_edgeFunction · 0.85

Calls 1

Tested by

no test coverage detected