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

Function adr_test_fill

tests/test_store_arch.c:925–932  ·  view source on GitHub ↗

Helper: allocate a NUL-terminated buffer of `len` 'x' characters. */

Source from the content-addressed store, hash-verified

923
924/* Helper: allocate a NUL-terminated buffer of `len` 'x' characters. */
925static char *adr_test_fill(int len) {
926 char *s = malloc((size_t)len + 1);
927 if (s) {
928 memset(s, 'x', (size_t)len);
929 s[len] = '\0';
930 }
931 return s;
932}
933
934/* Regression: sections whose combined size exceeds the fixed render buffer used
935 * to overflow it. adr_render_section advanced pos by snprintf's return value

Callers 1

test_store_arch.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected