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

Function ui_adr_equals

tests/test_httpd.c:858–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858static 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
875TEST(ui_server_readiness_proof_is_exact_and_generation_bound) {
876 static const char challenge[] =

Callers 1

test_httpd.cFile · 0.85

Calls 5

ui_delete_db_pathFunction · 0.85
cbm_store_adr_getFunction · 0.85
cbm_store_adr_freeFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected