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

Function chain_names

tests/test_cypher.c:5237–5245  ·  view source on GitHub ↗

The test's own reading of the chain: does any operand name `name`? */

Source from the content-addressed store, hash-verified

5235
5236/* The test's own reading of the chain: does any operand name `name`? */
5237static bool chain_names(const char *name) {
5238 for (int i = 0; i < CYPHER_CHAIN_OPERANDS; i++) {
5239 char buf[48];
5240 if (strcmp(chain_operand_value(i, buf, sizeof(buf)), name) == 0) {
5241 return true;
5242 }
5243 }
5244 return false;
5245}
5246
5247/* head + "f.name <op> \"v0\"" + join + "f.name <op> \"v1\"" + ... + tail */
5248static char *chain_query(const char *head, const char *op, const char *join, const char *tail) {

Callers 2

chain_checkFunction · 0.85
test_cypher.cFile · 0.85

Calls 1

chain_operand_valueFunction · 0.85

Tested by

no test coverage detected