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

Function setup_artifact_test

tests/test_artifact.c:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static CBMLogLevel g_prev_log_level;
29
30static void setup_artifact_test(void) {
31 snprintf(g_tmpdir, sizeof(g_tmpdir), "%s/cbm_test_artifact_XXXXXX", cbm_tmpdir());
32 cbm_mkdtemp(g_tmpdir);
33
34 snprintf(g_repo, sizeof(g_repo), "%s/repo", g_tmpdir);
35 cbm_mkdir_p(g_repo, 0755);
36
37 snprintf(g_db, sizeof(g_db), "%s/test.db", g_tmpdir);
38}
39
40/* Create a minimal but valid DB with some nodes and edges. */
41static 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