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

Function setup_artifact_test

tests/test_artifact.c:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static CBMLogLevel g_prev_log_level;
23
24static void setup_artifact_test(void) {
25 snprintf(g_tmpdir, sizeof(g_tmpdir), "%s/cbm_test_artifact_XXXXXX", cbm_tmpdir());
26 cbm_mkdtemp(g_tmpdir);
27
28 snprintf(g_repo, sizeof(g_repo), "%s/repo", g_tmpdir);
29 cbm_mkdir_p(g_repo, 0755);
30
31 snprintf(g_db, sizeof(g_db), "%s/test.db", g_tmpdir);
32}
33
34/* Create a minimal but valid DB with some nodes and edges. */
35static void create_test_db(const char *path) {

Callers 1

test_artifact.cFile · 0.85

Calls 3

cbm_tmpdirFunction · 0.85
cbm_mkdtempFunction · 0.85
cbm_mkdir_pFunction · 0.85

Tested by

no test coverage detected