| 11 | // @note if there was no env variable with given name, it will be set to empty string upon destruction IGNIETFERRO-1486 |
| 12 | struct TScopedEnvironment { |
| 13 | TScopedEnvironment(const TString& name, const TString& value) |
| 14 | : PreviousState{1, {name, ::GetEnv(name)}} |
| 15 | { |
| 16 | ::SetEnv(name, value); |
| 17 | } |
| 18 | |
| 19 | TScopedEnvironment(const TVector<std::pair<TString, TString>>& vars) |
| 20 | : PreviousState(Reserve(vars.size())) |
nothing calls this directly
no test coverage detected