Returns the output format, or "" for normal printed output.
| 1922 | |
| 1923 | // Returns the output format, or "" for normal printed output. |
| 1924 | std::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. |
nothing calls this directly
no outgoing calls
no test coverage detected