| 11575 | } |
| 11576 | |
| 11577 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 11578 | std::string name = testCase.getTestCaseInfo().name; |
| 11579 | if( name.empty() ) { |
| 11580 | ReusableStringStream rss; |
| 11581 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 11582 | return registerTest( testCase.withName( rss.str() ) ); |
| 11583 | } |
| 11584 | m_functions.push_back( testCase ); |
| 11585 | } |
| 11586 | |
| 11587 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 11588 | return m_functions; |
no test coverage detected