TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
| 140 | |
| 141 | // TODO(GH-48593): Remove when libc++ supports std::chrono timezones. |
| 142 | ARROW_SUPPRESS_DEPRECATION_WARNING |
| 143 | Status InitTestTimezoneDatabase() { |
| 144 | auto maybe_tzdata = GetTestTimezoneDatabaseRoot(); |
| 145 | // If missing, timezone database will default to %USERPROFILE%\Downloads\tzdata |
| 146 | if (!maybe_tzdata.has_value()) return Status::OK(); |
| 147 | |
| 148 | auto tzdata_path = std::string(maybe_tzdata.value()); |
| 149 | arrow::GlobalOptions options; |
| 150 | options.timezone_db_path = std::make_optional(tzdata_path); |
| 151 | ARROW_RETURN_NOT_OK(arrow::Initialize(options)); |
| 152 | return Status::OK(); |
| 153 | } |
| 154 | ARROW_UNSUPPRESS_DEPRECATION_WARNING |
| 155 | |
| 156 | int GetListenPort() { |
nothing calls this directly
no test coverage detected