| 2802 | |
| 2803 | #if defined(CBM_INCREMENTAL_TEST_API) && CBM_INCREMENTAL_TEST_API |
| 2804 | static void observe_named_generation(const char *db_path, const char *project, |
| 2805 | const char *before_name, const char *after_name, |
| 2806 | int *before_count, int *after_count) { |
| 2807 | *before_count = -1; |
| 2808 | *after_count = -1; |
| 2809 | cbm_store_t *store = cbm_store_open_path(db_path); |
| 2810 | if (!store) { |
| 2811 | return; |
| 2812 | } |
| 2813 | *before_count = named_node_count(store, project, before_name); |
| 2814 | *after_count = named_node_count(store, project, after_name); |
| 2815 | cbm_store_close(store); |
| 2816 | } |
| 2817 | |
| 2818 | static int count_generation_stage_artifacts(const char *dir_path, const char *db_basename) { |
| 2819 | cbm_dir_t *dir = cbm_opendir(dir_path); |
no test coverage detected