| 201 | cbm_store_free_nodes(nodes, count); cbm_store_close(s); return ok; |
| 202 | } |
| 203 | static 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 | } |
| 208 | static 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 | } |
no test coverage detected