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

Function ovr_out

tests/test_pipeline.c:13617–13623  ·  view source on GitHub ↗

OVERRIDE edges leaving `method`; *only_target receives the single target (or 0). */

Source from the content-addressed store, hash-verified

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) {
13618 const cbm_gbuf_edge_t **edges = NULL;
13619 int count = 0;
13620 cbm_gbuf_find_edges_by_source_type(gb, method, "OVERRIDE", &edges, &count);
13621 *only_target = count == 1 ? edges[0]->target_id : 0;
13622 return count;
13623}
13624
13625/* Exactly two different targets, each once, independent of edge order. */
13626static bool ovr_two_targets(cbm_gbuf_t *gb, int64_t method, int64_t first, int64_t second) {

Callers 1

test_pipeline.cFile · 0.85

Calls 1

Tested by

no test coverage detected