| 167 | } |
| 168 | |
| 169 | std::string GetEnv(char const* var) { |
| 170 | auto const* value = std::getenv(var); |
| 171 | if (value == nullptr) { |
| 172 | throw std::runtime_error("Environment variable " + std::string(var) + |
| 173 | " is not set"); |
| 174 | } |
| 175 | return value; |
| 176 | } |
| 177 | |
| 178 | } // namespace google::cloud::cpp_samples |
no outgoing calls
no test coverage detected