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

Function restore_test_env

tests/test_cli.c:638–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638static void restore_test_env(const char *name, char *saved) {
639 if (saved) {
640 cbm_setenv(name, saved, 1);
641 free(saved);
642 } else {
643 cbm_unsetenv(name);
644 }
645}
646
647/* An unreadable CBM_HOOK_DEADLINE_MS must fall back to the DEFAULT budget, not
648 * to the shortest one the setting allows.

Callers 4

test_cli.cFile · 0.85
openhands_fixture_closeFunction · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected