| 11852 | } |
| 11853 | |
| 11854 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 11855 | std::string name = testCase.getTestCaseInfo().name; |
| 11856 | if( name.empty() ) { |
| 11857 | ReusableStringStream rss; |
| 11858 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 11859 | return registerTest( testCase.withName( rss.str() ) ); |
| 11860 | } |
| 11861 | m_functions.push_back( testCase ); |
| 11862 | } |
| 11863 | |
| 11864 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 11865 | return m_functions; |
no test coverage detected