| 13668 | } |
| 13669 | |
| 13670 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 13671 | std::string name = testCase.getTestCaseInfo().name; |
| 13672 | if( name.empty() ) { |
| 13673 | ReusableStringStream rss; |
| 13674 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 13675 | return registerTest( testCase.withName( rss.str() ) ); |
| 13676 | } |
| 13677 | m_functions.push_back( testCase ); |
| 13678 | } |
| 13679 | |
| 13680 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 13681 | return m_functions; |
no test coverage detected