| 14298 | } |
| 14299 | |
| 14300 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 14301 | std::string name = testCase.getTestCaseInfo().name; |
| 14302 | if( name.empty() ) { |
| 14303 | ReusableStringStream rss; |
| 14304 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 14305 | return registerTest( testCase.withName( rss.str() ) ); |
| 14306 | } |
| 14307 | m_functions.push_back( testCase ); |
| 14308 | } |
| 14309 | |
| 14310 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 14311 | return m_functions; |
no test coverage detected