| 55 | // value of type T. |
| 56 | template <typename T> |
| 57 | bool GetEnvVar(const char* varname, bool (*convert)(StringPiece, T*), |
| 58 | T* value) { |
| 59 | const char* env_value = std::getenv(varname); |
| 60 | if (env_value == nullptr) { |
| 61 | return false; |
| 62 | } |
| 63 | return convert(env_value, value); |
| 64 | } |
| 65 | |
| 66 | /// GcsStatsInterface allows for instrumentation of the GCS file system. |
| 67 | /// |
no test coverage detected