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

Function pc_c_graph

tests/test_pipeline_conventions.c:174–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 return read && found;
173}
174static bool pc_c_graph(const char *db, bool after) {
175 cbm_store_t *s = cbm_store_open_path_query(db);
176 if (!s) return false;
177 cbm_node_t c = {0}, g = {0}, cs = {0}, gs = {0};
178 bool ok = pc_node(s, after ? PC_PROJECT ".unit.CHECK_after" : PC_PROJECT ".unit.CHECK_before",
179 after ? "CHECK_after" : "CHECK_before", "unit.c", "case", &c) &&
180 pc_node(s, PC_PROJECT ".unit.GROUP_group", "GROUP_group", "unit.c", "suite", &g) &&
181 pc_node(s, PC_PROJECT ".unit.case_sink", "case_sink", "unit.c", NULL, &cs) &&
182 pc_node(s, PC_PROJECT ".unit.suite_sink", "suite_sink", "unit.c", NULL, &gs) &&
183 pc_call(s, c.id, cs.id) && pc_call(s, g.id, gs.id);
184 cbm_node_free_fields(&c); cbm_node_free_fields(&g); cbm_node_free_fields(&cs); cbm_node_free_fields(&gs);
185 cbm_store_close(s); return ok;
186}
187static bool pc_ordinary_graph(const char *db, const char *name) {
188 cbm_store_t *s = cbm_store_open_path_query(db);
189 if (!s) return false;

Callers 2

pc_configured_caseFunction · 0.85

Calls 5

pc_nodeFunction · 0.85
pc_callFunction · 0.85
cbm_node_free_fieldsFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected