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

Function chain_operand_value

tests/test_cypher.c:5225–5234  ·  view source on GitHub ↗

Operand i of a generated chain compares f.name with this value. Two fixture * names sit deep in the chain (the middle and the very last operand); every * other operand names a function that does not exist. */

Source from the content-addressed store, hash-verified

5223 * names sit deep in the chain (the middle and the very last operand); every
5224 * other operand names a function that does not exist. */
5225static const char *chain_operand_value(int i, char *buf, size_t n) {
5226 if (i == CYPHER_CHAIN_OPERANDS / 2) {
5227 return "ValidateOrder";
5228 }
5229 if (i == CYPHER_CHAIN_OPERANDS - 1) {
5230 return "LogError";
5231 }
5232 snprintf(buf, n, "no_such_function_%d", i);
5233 return buf;
5234}
5235
5236/* The test's own reading of the chain: does any operand name `name`? */
5237static bool chain_names(const char *name) {

Callers 2

chain_namesFunction · 0.85
chain_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected