Count nodes with a given label. */
| 258 | |
| 259 | /* Count nodes with a given label. */ |
| 260 | static int cp_count_label(cbm_store_t *store, const char *project, const char *label) { |
| 261 | if (!store) return -1; |
| 262 | cbm_node_t *nodes = NULL; |
| 263 | int count = 0; |
| 264 | if (cbm_store_find_nodes_by_label(store, project, label, &nodes, &count) != CBM_STORE_OK) |
| 265 | return -1; |
| 266 | cbm_store_free_nodes(nodes, count); |
| 267 | return count; |
| 268 | } |
| 269 | |
| 270 | /* Sum callable nodes (Function + Method). */ |
| 271 | static int cp_callables(cbm_store_t *store, const char *project) { |
no test coverage detected