MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetOutputFormat

Method GetOutputFormat

tests/gtest/gtest-all.cc:1924–1931  ·  view source on GitHub ↗

Returns the output format, or "" for normal printed output.

Source from the content-addressed store, hash-verified

1922
1923// Returns the output format, or "" for normal printed output.
1924std::string UnitTestOptions::GetOutputFormat() {
1925 const char* const gtest_output_flag = GTEST_FLAG(output).c_str();
1926 const char* const colon = strchr(gtest_output_flag, ':');
1927 return (colon == nullptr)
1928 ? std::string(gtest_output_flag)
1929 : std::string(gtest_output_flag,
1930 static_cast<size_t>(colon - gtest_output_flag));
1931}
1932
1933// Returns the name of the requested output file, or the default if none
1934// was explicitly specified.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected