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

Function integration_teardown

tests/test_integration.c:144–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static void integration_teardown(void) {
145 if (g_srv) {
146 cbm_mcp_server_free(g_srv);
147 g_srv = NULL;
148 }
149 free(g_project);
150 g_project = NULL;
151
152 /* Clean up temp project */
153 th_rmtree(g_tmpdir);
154
155 /* Clean up cache db */
156 unlink(g_dbpath);
157 char wal[520], shm[520];
158 snprintf(wal, sizeof(wal), "%s-wal", g_dbpath);
159 snprintf(shm, sizeof(shm), "%s-shm", g_dbpath);
160 unlink(wal);
161 unlink(shm);
162}
163
164/* ══════════════════════════════════════════════════════════════════
165 * PIPELINE INTEGRATION TESTS

Callers 1

test_integration.cFile · 0.85

Calls 2

cbm_mcp_server_freeFunction · 0.85
th_rmtreeFunction · 0.85

Tested by

no test coverage detected