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