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

Function add_keyed

tests/test_store_impact.c:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static int64_t add_keyed(cbm_store_t *s, const char *name, const char *key) {
325 char qn[64];
326 char props[128];
327 snprintf(qn, sizeof(qn), "test.%s", name);
328 snprintf(props, sizeof(props), "{\"variant_key\":\"%s\"}", key);
329 cbm_node_t node = {.project = "test",
330 .label = "Function",
331 .name = name,
332 .qualified_name = qn,
333 .properties_json = props};
334 return cbm_store_upsert_node(s, &node);
335}
336
337TEST(impact_walk_crosses_platform_variants_only_when_asked) {
338 /* pick_win and pick_posix are the platform variants of one function (one

Callers 1

Calls 1

cbm_store_upsert_nodeFunction · 0.85

Tested by

no test coverage detected