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

Function write_test_file

tests/test_cli.c:398–405  ·  view source on GitHub ↗

Helper: create a file with content */

Source from the content-addressed store, hash-verified

396
397/* Helper: create a file with content */
398static int write_test_file(const char *path, const char *content) {
399 FILE *f = cbm_fopen(path, "wb");
400 if (!f)
401 return -1;
402 fprintf(f, "%s", content);
403 fclose(f);
404 return 0;
405}
406
407/* Helper: read a file into static buffer */
408static const char *read_test_file(const char *path) {

Calls 1

cbm_fopenFunction · 0.85

Tested by

no test coverage detected