| 10037 | } |
| 10038 | |
| 10039 | void TestRegistry::registerTest( TestCase const& testCase ) { |
| 10040 | std::string name = testCase.getTestCaseInfo().name; |
| 10041 | if( name.empty() ) { |
| 10042 | ReusableStringStream rss; |
| 10043 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 10044 | return registerTest( testCase.withName( rss.str() ) ); |
| 10045 | } |
| 10046 | m_functions.push_back( testCase ); |
| 10047 | } |
| 10048 | |
| 10049 | std::vector<TestCase> const& TestRegistry::getAllTests() const { |
| 10050 | return m_functions; |
no test coverage detected