MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / observe_named_generation

Function observe_named_generation

tests/test_pipeline.c:2803–2815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_pipeline.cFile · 0.85

Calls 3

cbm_store_open_pathFunction · 0.85
named_node_countFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected