MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / StringFromGTestEnv

Function StringFromGTestEnv

rtpose_wrapper/src/gtest/gtest-all.cpp:8540–8544  ·  view source on GitHub ↗

Reads and returns the string environment variable corresponding to the given flag; if it's not set, returns default_value.

Source from the content-addressed store, hash-verified

8538// Reads and returns the string environment variable corresponding to
8539// the given flag; if it's not set, returns default_value.
8540const 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

Callers 1

gtest-all.cppFile · 0.85

Calls 2

FlagToEnvVarFunction · 0.85
GetEnvFunction · 0.85

Tested by

no test coverage detected