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

Function app_owner_seed

tests/test_daemon_application.c:6734–6745  ·  view source on GitHub ↗

One indexed project whose stored root is this fixture's root. */

Source from the content-addressed store, hash-verified

6732
6733/* One indexed project whose stored root is this fixture's root. */
6734static bool app_owner_seed(const app_owner_fixture_t *owner, const char *project) {
6735 char path[APP_TEST_PATH_CAP];
6736 int written = snprintf(path, sizeof(path), "%s/%s.db", owner->cache, project);
6737 if (written <= 0 || (size_t)written >= sizeof(path)) {
6738 return false;
6739 }
6740 cbm_store_t *store = cbm_store_open_path(path);
6741 bool seeded =
6742 store && cbm_store_upsert_project(store, project, owner->canonical_root) == CBM_STORE_OK;
6743 cbm_store_close(store);
6744 return seeded;
6745}
6746
6747/* An unnamed async start, then unnamed status polls naming the same
6748 * repo_path: one while the held worker runs, one after it drained. */

Callers 1

Calls 3

cbm_store_open_pathFunction · 0.85
cbm_store_upsert_projectFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected