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

Function make_temp_db

tests/test_sqlite_writer.c:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19/* ── Helper: create temp file path ─────────────────────────────── */
20
21static int make_temp_db(char *path, size_t pathsz) {
22 snprintf(path, pathsz, "/tmp/cbm_sw_test_XXXXXX");
23 int fd = cbm_mkstemp(path);
24 if (fd < 0)
25 return -1;
26 close(fd);
27 return 0;
28}
29
30static int assert_node_name(sqlite3 *db, const char *expected) {
31 sqlite3_stmt *stmt = NULL;

Callers 2

Calls 2

cbm_mkstempFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected