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

Function scan_fixture_open

tests/test_mcp.c:24584–24594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24582} scan_fixture_t;
24583
24584static bool scan_fixture_open(scan_fixture_t *fx) {
24585 memset(fx, 0, sizeof(*fx));
24586 const char *tmp = th_mktempdir("cbm_scan");
24587 if (!tmp) {
24588 return false;
24589 }
24590 snprintf(fx->dir, sizeof(fx->dir), "%s", tmp);
24591 snprintf(fx->list, sizeof(fx->list), "%s/list", tmp);
24592 snprintf(fx->out, sizeof(fx->out), "%s/out", tmp);
24593 return true;
24594}
24595
24596/* Add a file holding exactly `length` bytes (NUL bytes allowed). */
24597static bool scan_fixture_add(scan_fixture_t *fx, const char *name, const char *data,

Callers 1

test_mcp.cFile · 0.85

Calls 1

th_mktempdirFunction · 0.85

Tested by

no test coverage detected