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

Method set

tests/common/mod.rs:34–38  ·  view source on GitHub ↗
(key: &'static str, value: impl AsRef<OsStr>)

Source from the content-addressed store, hash-verified

32
33impl EnvVarGuard {
34 pub fn set(key: &'static str, value: impl AsRef<OsStr>) -> Self {
35 let previous = std::env::var_os(key);
36 std::env::set_var(key, value);
37 Self { key, previous }
38 }
39
40 /// Removes `key` for the guard's lifetime, so tests can exercise the
41 /// no-override path.

Callers 15

fetchProfileMethod · 0.45
fillDailySeriesFunction · 0.45
registerFunction · 0.45
writeTabToUrlFunction · 0.45
AppFunction · 0.45
SimilarityPanelFunction · 0.45
HolographicViewFunction · 0.45
AssociationGraphFunction · 0.45
linkFunction · 0.45
buildAdjacencyFunction · 0.45
withLimitFunction · 0.45
api.tsFile · 0.45

Calls 3

setFunction · 0.85
canonicalize_test_dirFunction · 0.70

Tested by 1

loadWrapperFunction · 0.36