MCPcopy Create free account
hub / github.com/baidu/tera / GetValueFromEnv

Function GetValueFromEnv

src/utils/utils_cmd.cc:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48std::string GetValueFromEnv(const std::string& env_name) {
49 if (env_name.empty()) {
50 return "";
51 }
52
53 const char* env = getenv(env_name.c_str());
54 if (!env) {
55 VLOG(5) << "fail to fetch from env: " << env_name;
56 return "";
57 }
58 return env;
59}
60
61std::string ConvertByteToString(const uint64_t size) {
62 std::string hight_unit;

Callers 3

InitFlagsFunction · 0.85
InitFlagsFunction · 0.85
InitFlagsFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected