| 209 | return pc_generation(f->db, out->generation) && pc_copy(f->db, f->saved); |
| 210 | } |
| 211 | static 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 | } |
| 216 | static 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; |
no test coverage detected