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

Function ui_adr_seed

tests/test_httpd.c:753–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753static int ui_adr_seed(const ui_delete_fixture_t *fx, const char *project, const char *content) {
754 char db_path[1024];
755 ui_delete_db_path(fx, project, db_path, sizeof(db_path));
756 cbm_store_t *store = cbm_store_open_path(db_path);
757 if (!store)
758 return CBM_STORE_ERR;
759 int rc = cbm_store_adr_store(store, project, content);
760 cbm_store_close(store);
761 return rc;
762}
763
764static bool ui_adr_equals(const ui_delete_fixture_t *fx, const char *project,
765 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