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

Function ovr_method

tests/test_pipeline.c:13608–13614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13606}
13607
13608static int64_t ovr_method(cbm_gbuf_t *gb, int64_t cls, const char *cls_name, const char *name) {
13609 char qn[128];
13610 snprintf(qn, sizeof(qn), "m.%s.%s", cls_name, name);
13611 int64_t id = cbm_gbuf_upsert_node(gb, "Method", name, qn, "m.py", 2, 3, "{}");
13612 cbm_gbuf_insert_edge(gb, cls, id, "DEFINES_METHOD", "{}");
13613 return id;
13614}
13615
13616/* OVERRIDE edges leaving `method`; *only_target receives the single target (or 0). */
13617static int ovr_out(cbm_gbuf_t *gb, int64_t method, int64_t *only_target) {

Callers 1

test_pipeline.cFile · 0.85

Calls 2

cbm_gbuf_upsert_nodeFunction · 0.85
cbm_gbuf_insert_edgeFunction · 0.85

Tested by

no test coverage detected