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

Function client_detect_env_restore

tests/test_cli.c:6815–6821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6813}
6814
6815static void client_detect_env_restore(client_detect_env_t *saved) {
6816 restore_test_env("PATH", saved->path);
6817 restore_test_env("CLAUDE_CONFIG_DIR", saved->claude_config_dir);
6818 restore_test_env("OPENCODE_CONFIG", saved->opencode_config);
6819 restore_test_env("OPENCODE_CONFIG_DIR", saved->opencode_config_dir);
6820 restore_test_env("HERMES_HOME", saved->hermes_home);
6821}
6822
6823/* Fresh home plus an empty bin dir used as the whole PATH. */
6824static bool client_detect_fixture(char *home, size_t home_sz, char *bin, size_t bin_sz) {

Callers 1

test_cli.cFile · 0.85

Calls 1

restore_test_envFunction · 0.85

Tested by

no test coverage detected