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

Function restore_test_env

tests/test_cli.c:359–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359static void restore_test_env(const char *name, char *saved) {
360 if (saved) {
361 cbm_setenv(name, saved, 1);
362 free(saved);
363 } else {
364 cbm_unsetenv(name);
365 }
366}
367
368/* Helper: mkdirp */
369static 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