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

Method ~EnvVarGuard

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

SetEnvVarFunction · 0.85
DelEnvVarFunction · 0.85

Tested by

no test coverage detected