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

Function pc_generation

tests/test_pipeline_conventions.c:203–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 cbm_store_free_nodes(nodes, count); cbm_store_close(s); return ok;
202}
203static bool pc_generation(const char *db, char out[128]) {
204 cbm_store_t *s = cbm_store_open_path_query(db);
205 bool ok = s && cbm_store_generation(s, out, 128) == CBM_STORE_OK && out[0] && strcmp(out, "legacy") != 0;
206 cbm_store_close(s); return ok;
207}
208static bool pc_snapshot(pc_fixture_t *f, pc_snapshot_t *out) {
209 return pc_generation(f->db, out->generation) && pc_copy(f->db, f->saved);
210}

Callers 5

pc_snapshotFunction · 0.85
pc_preservedFunction · 0.85
pc_snapshot_equalFunction · 0.85
pc_typed_degradeFunction · 0.85

Calls 3

cbm_store_generationFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected