Reads and returns the string environment variable corresponding to the given flag; if it's not set, returns default_value.
| 8538 | // Reads and returns the string environment variable corresponding to |
| 8539 | // the given flag; if it's not set, returns default_value. |
| 8540 | const char* StringFromGTestEnv(const char* flag, const char* default_value) { |
| 8541 | const String env_var = FlagToEnvVar(flag); |
| 8542 | const char* const value = posix::GetEnv(env_var.c_str()); |
| 8543 | return value == NULL ? default_value : value; |
| 8544 | } |
| 8545 | |
| 8546 | } // namespace internal |
| 8547 | } // namespace testing |
no test coverage detected