MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / clear

Method clear

atomic-cli/src/commands/record/tests.rs:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31 impl AiEnvGuard {
32 fn clear() -> Self {
33 let original = AI_ENV_KEYS
34 .iter()
35 .map(|&key| (key, std::env::var_os(key)))
36 .collect();
37 for key in AI_ENV_KEYS {
38 std::env::remove_var(key);
39 }
40 Self { original }
41 }
42 }
43
44 impl Drop for AiEnvGuard {

Callers

nothing calls this directly

Calls 2

collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected