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

Function write_test_file

tests/test_cli.c:169–176  ·  view source on GitHub ↗

Helper: create a file with content */

Source from the content-addressed store, hash-verified

167
168/* Helper: create a file with content */
169static int write_test_file(const char *path, const char *content) {
170 FILE *f = cbm_fopen(path, "wb");
171 if (!f)
172 return -1;
173 fprintf(f, "%s", content);
174 fclose(f);
175 return 0;
176}
177
178/* Helper: read a file into static buffer */
179static const char *read_test_file(const char *path) {

Callers 3

test_cli.cFile · 0.85

Calls 1

cbm_fopenFunction · 0.85

Tested by

no test coverage detected