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

Function pc_preserved

tests/test_pipeline_conventions.c:211–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 return pc_generation(f->db, out->generation) && pc_copy(f->db, f->saved);
210}
211static bool pc_preserved(pc_fixture_t *f, const pc_snapshot_t *before) {
212 char now[128];
213 return pc_files_equal(f->db, f->saved) && pc_generation(f->db, now) &&
214 strcmp(now, before->generation) == 0 && pc_ordinary_graph(f->db, "preserved");
215}
216static bool pc_source_hash(const char *db, char out[65]) {
217 cbm_store_t *s = cbm_store_open_path_query(db); cbm_file_hash_t h = {0};
218 bool ok = s && cbm_store_get_file_hash(s, PC_PROJECT, "unit.c", &h) == CBM_STORE_OK && h.sha256 && strlen(h.sha256) == 64;

Callers 1

Calls 3

pc_files_equalFunction · 0.85
pc_generationFunction · 0.85
pc_ordinary_graphFunction · 0.85

Tested by

no test coverage detected