| 14006 | } |
| 14007 | |
| 14008 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 14009 | std::string name = testCase.getTestCaseInfo().name; |
| 14010 | if( name.empty() ) { |
| 14011 | ReusableStringStream rss; |
| 14012 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 14013 | return registerTest( testCase.withName( rss.str() ) ); |
| 14014 | } |
| 14015 | m_functions.push_back( testCase ); |
| 14016 | } |
| 14017 | |
| 14018 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 14019 | return m_functions; |
no test coverage detected