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

Function observe_named_generation

tests/test_pipeline.c:2804–2816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2802
2803#if defined(CBM_INCREMENTAL_TEST_API) && CBM_INCREMENTAL_TEST_API
2804static 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
2818static int count_generation_stage_artifacts(const char *dir_path, const char *db_basename) {
2819 cbm_dir_t *dir = cbm_opendir(dir_path);

Callers 2

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