One indexed project whose stored root is this fixture's root. */
| 6732 | |
| 6733 | /* One indexed project whose stored root is this fixture's root. */ |
| 6734 | static 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. */ |
no test coverage detected