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

Function make_temp_db

tests/test_sqlite_writer.c:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17/* ── Helper: create temp file path ─────────────────────────────── */
18
19static int make_temp_db(char *path, size_t pathsz) {
20 snprintf(path, pathsz, "/tmp/cbm_sw_test_XXXXXX");
21 int fd = cbm_mkstemp(path);
22 if (fd < 0)
23 return -1;
24 close(fd);
25 return 0;
26}
27
28/* ── Tests ─────────────────────────────────────────────────────── */
29

Callers 1

Calls 1

cbm_mkstempFunction · 0.85

Tested by

no test coverage detected