| 856 | } |
| 857 | |
| 858 | static bool ui_adr_equals(const ui_delete_fixture_t *fx, const char *project, |
| 859 | const char *expected) { |
| 860 | char db_path[1024]; |
| 861 | ui_delete_db_path(fx, project, db_path, sizeof(db_path)); |
| 862 | cbm_store_t *store = cbm_store_open_path_query(db_path); |
| 863 | if (!store) |
| 864 | return false; |
| 865 | |
| 866 | cbm_adr_t adr = {0}; |
| 867 | int rc = cbm_store_adr_get(store, project, &adr); |
| 868 | bool equal = rc == CBM_STORE_OK && adr.content && strcmp(adr.content, expected) == 0; |
| 869 | if (rc == CBM_STORE_OK) |
| 870 | cbm_store_adr_free(&adr); |
| 871 | cbm_store_close(store); |
| 872 | return equal; |
| 873 | } |
| 874 | |
| 875 | TEST(ui_server_readiness_proof_is_exact_and_generation_bound) { |
| 876 | static const char challenge[] = |
no test coverage detected