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

Function gmt_node

tests/test_graph_mem.c:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static int64_t gmt_node(cbm_store_t *s, const char *project, int i, const char *name) {
46 char qn[64];
47 char file[32];
48 snprintf(qn, sizeof(qn), "%s.mod%d.n%02d", project, i % 5, i);
49 snprintf(file, sizeof(file), "src/m%d.c", i % 5);
50 cbm_node_t n = {.project = project,
51 .label = (i % 7 == 3) ? "Method" : "Function",
52 .name = name,
53 .qualified_name = qn,
54 .file_path = file,
55 .start_line = i,
56 .end_line = i + 3};
57 return cbm_store_upsert_node(s, &n);
58}
59
60static void gmt_edge(cbm_store_t *s, int64_t src, int64_t dst, const char *type,
61 const char *props) {

Callers 1

gmt_fixture_buildFunction · 0.85

Calls 1

cbm_store_upsert_nodeFunction · 0.85

Tested by

no test coverage detected