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

Function write_test_file

tests/test_cli.c:171–178  ·  view source on GitHub ↗

Helper: create a file with content */

Source from the content-addressed store, hash-verified

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