src/third_party/angle/src/tests/test_utils/runner/TestSuite.cpp
// Prints the names of the tests matching the user-specified filter flag.
// This matches the output from googletest/src/gtest.cc but is much much faster for large filters.
// See http://anglebug.com/5164
Prints the names of the tests matching the user-specified filter flag.
This matches the output from googletest/src/gtest.cc but is much much faster for large filters.
Prints the names of the tests matching the user - specified filter flag . This matches the output from googletest / src / gtest . cc but is much much faster for large filters .
void GTestListTests(const std::map<TestIdentifier, TestResult> &resultsMap)
{
    std::map<std::string, std::vector<std::string>> suites;
    for (const auto &resultIt : resultsMap)
    {
        const TestIdentifier &id = resultIt.first;
        suites[id.testSuiteName].push_back(id.testName);
    }
    for (const auto &testSuiteIt : suites)
    {
        bool printedTestSuiteName = false;
        const std::string &suiteName              = testSuiteIt.first;
        const std::vector<std::string> &testNames = testSuiteIt.second;
        for (const std::string &testName : testNames)
        {
            if (!printedTestSuiteName)
            {
                printedTestSuiteName = true;
                printf("%s.\n", suiteName.c_str());
            }
            printf("  %s\n", testName.c_str());
        }
    }
}
void GTestListTests ( const std :: map < TestIdentifier , TestResult > & resultsMap ) { std :: map < std :: string , std :: vector < std :: string > > suites ; for ( const auto & resultIt : resultsMap ) { const TestIdentifier & id = resultIt . first ; suites [ id . testSuiteName ] . push_back ( id . testName ) ; } for ( const auto & testSuiteIt : suites ) { bool printedTestSuiteName = false ; const std :: string & suiteName = testSuiteIt . first ; const std :: vector < std :: string > & testNames = testSuiteIt . second ; for ( const std :: string & testName : testNames ) { if ( ! printedTestSuiteName ) { printedTestSuiteName = true ; printf ( " \n " , suiteName . c_str ( ) ) ; } printf ( " \n " , testName . c_str ( ) ) ; } } }
Prints the names of the tests matching the user-specified filter flag.
Prints the names of the tests matching the user - specified filter flag .