| 321 | ASSERT_EQ(rc, 0); ASSERT_TRUE(defaults); PASS(); |
| 322 | } |
| 323 | static bool pc_coverage_kind(const char *db, const char *path, const char *kind) { |
| 324 | cbm_store_t *s = cbm_store_open_path_query(db); |
| 325 | cbm_coverage_row_t *rows = NULL; int count = 0; bool found = false; |
| 326 | if (s && cbm_store_coverage_get_path(s, PC_PROJECT, path, &rows, &count) == CBM_STORE_OK) |
| 327 | for (int i = 0; i < count; i++) found = found || pc_text(rows[i].kind, kind); |
| 328 | cbm_store_free_coverage(rows, count); cbm_store_close(s); return found; |
| 329 | } |
| 330 | /* A configured form that cannot be mapped degrades its FILE, not the index |
| 331 | * (user decision 2026-10-04): the run publishes, the file is indexed without |
| 332 | * configured test roles, and it carries a test_declarations diagnostic. Before, |
no test coverage detected