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

Function add_node

tests/test_store_impact.c:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <string.h>
15
16static int64_t add_node(cbm_store_t *s, const char *label, const char *name) {
17 char qn[64];
18 snprintf(qn, sizeof(qn), "test.%s", name);
19 cbm_node_t node = {.project = "test", .label = label, .name = name, .qualified_name = qn};
20 return cbm_store_upsert_node(s, &node);
21}
22
23/* `from` depends on `to`: the edge the walk follows backwards. */
24static void add_edge(cbm_store_t *s, int64_t from, int64_t to, const char *type) {

Callers 2

build_diamondFunction · 0.85

Calls 1

cbm_store_upsert_nodeFunction · 0.85

Tested by

no test coverage detected