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

Function make_temp_db

tests/test_sqlite_writer.c:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

cbm_mkstempFunction · 0.85

Tested by

no test coverage detected