MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / drop

Method drop

tests/mcp_suite/mcp_handler_test.rs:136–141  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

134
135impl Drop for GlobalDbEnvGuard {
136 fn drop(&mut self) {
137 match self.previous.take() {
138 Some(value) => std::env::set_var("TRACEDECAY_GLOBAL_DB", value),
139 None => std::env::remove_var("TRACEDECAY_GLOBAL_DB"),
140 }
141 }
142}
143
144struct HomeEnvGuard {

Callers

nothing calls this directly

Calls 4

keepMethod · 0.80
buildMethod · 0.80
takeMethod · 0.45
checkpointMethod · 0.45

Tested by

no test coverage detected