Count nodes carrying `label`. Returns -1 on query error. */
| 157 | |
| 158 | /* Count nodes carrying `label`. Returns -1 on query error. */ |
| 159 | static inline int rh_count_label(cbm_store_t *store, const char *project, const char *label) { |
| 160 | cbm_node_t *nodes = NULL; |
| 161 | int count = 0; |
| 162 | if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK) |
| 163 | return -1; |
| 164 | cbm_store_free_nodes(nodes, count); |
| 165 | return count; |
| 166 | } |
| 167 | |
| 168 | /* TIER B: returns true if cbm_extract_file CRASHES (signal) on `content`. |
| 169 | * Runs in a forked child so the crash doesn't take down the repro runner. */ |
no test coverage detected