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