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

Function edge_has_strategy

tests/test_doclinks.c:60–64  ·  view source on GitHub ↗

True when the edge's props JSON carries the given strategy. */

Source from the content-addressed store, hash-verified

58
59/* True when the edge's props JSON carries the given strategy. */
60static bool edge_has_strategy(const cbm_gbuf_edge_t *e, const char *strategy) {
61 char needle[64];
62 snprintf(needle, sizeof(needle), "\"strategy\":\"%s\"", strategy);
63 return e && e->properties_json && strstr(e->properties_json, needle) != NULL;
64}
65
66/* Total REFERENCES_FILE edge count. */
67static int ref_edge_count(cbm_gbuf_t *gb) {

Callers 1

test_doclinks.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected