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

Function ui_adr_seed

tests/test_httpd.c:847–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847static int ui_adr_seed(const ui_delete_fixture_t *fx, const char *project, const char *content) {
848 char db_path[1024];
849 ui_delete_db_path(fx, project, db_path, sizeof(db_path));
850 cbm_store_t *store = cbm_store_open_path(db_path);
851 if (!store)
852 return CBM_STORE_ERR;
853 int rc = cbm_store_adr_store(store, project, content);
854 cbm_store_close(store);
855 return rc;
856}
857
858static bool ui_adr_equals(const ui_delete_fixture_t *fx, const char *project,
859 const char *expected) {

Callers 1

test_httpd.cFile · 0.85

Calls 4

ui_delete_db_pathFunction · 0.85
cbm_store_open_pathFunction · 0.85
cbm_store_adr_storeFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected