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

Function restore_test_env

tests/test_cli.c:357–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357static void restore_test_env(const char *name, char *saved) {
358 if (saved) {
359 cbm_setenv(name, saved, 1);
360 free(saved);
361 } else {
362 cbm_unsetenv(name);
363 }
364}
365
366/* Helper: mkdirp */
367static int test_mkdirp(const char *path) {

Callers 1

test_cli.cFile · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected