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

Function restore_test_env

tests/test_cli.c:360–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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