MCPcopy Create free account
hub / github.com/apache/arrow / ~EnvVarGuard

Method ~EnvVarGuard

cpp/src/arrow/testing/gtest_util.cc:678–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678EnvVarGuard::~EnvVarGuard() {
679 if (old_value_.has_value()) {
680 ARROW_CHECK_OK(arrow::internal::SetEnvVar(name_, *old_value_));
681 } else {
682 ARROW_CHECK_OK(arrow::internal::DelEnvVar(name_));
683 }
684}
685
686struct SignalHandlerGuard::Impl {
687 int signum_;

Callers

nothing calls this directly

Calls 2

SetEnvVarFunction · 0.85
DelEnvVarFunction · 0.85

Tested by

no test coverage detected