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

Method drop

atomic-cli/src/commands/record/tests.rs:45–52  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

43
44 impl Drop for AiEnvGuard {
45 fn drop(&mut self) {
46 for (key, value) in &self.original {
47 match value {
48 Some(value) => std::env::set_var(key, value),
49 None => std::env::remove_var(key),
50 }
51 }
52 }
53 }
54
55 // Record Command Construction Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected