Count nodes carrying `label`. Returns -1 on query error. */
| 129 | |
| 130 | /* Count nodes carrying `label`. Returns -1 on query error. */ |
| 131 | static inline int rh_count_label(cbm_store_t *store, const char *project, const char *label) { |
| 132 | cbm_node_t *nodes = NULL; |
| 133 | int count = 0; |
| 134 | if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK) |
| 135 | return -1; |
| 136 | cbm_store_free_nodes(nodes, count); |
| 137 | return count; |
| 138 | } |
| 139 | |
| 140 | /* TIER B: returns true if cbm_extract_file CRASHES (signal) on `content`. |
| 141 | * Runs in a forked child so the crash doesn't take down the repro runner. */ |
no test coverage detected