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

Function adr_check_splice

tests/test_store_arch.c:1137–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137static int adr_check_splice(const char *in, const char *name, const char *body,
1138 const char *expect) {
1139 char *out = cbm_adr_splice_section(in, name, body);
1140 ASSERT_NOT_NULL(out);
1141 if (strcmp(out, expect) != 0) {
1142 printf(" %sFAIL%s %s: splice(\"%s\")\n in >>>%s<<<\n got >>>%s<<<\n"
1143 " expect >>>%s<<<\n",
1144 tf_red(), tf_reset(), __FILE__, name, in, out, expect);
1145 free(out);
1146 return 1;
1147 }
1148 free(out);
1149 return 0;
1150}
1151
1152#define CHECK_SPLICE(in, name, body, expect) \
1153 do { \

Callers

nothing calls this directly

Calls 3

cbm_adr_splice_sectionFunction · 0.85
tf_redFunction · 0.85
tf_resetFunction · 0.85

Tested by

no test coverage detected