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

Method ~EnvVarGuard

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

SetEnvVarFunction · 0.85
DelEnvVarFunction · 0.85

Tested by

no test coverage detected