| 9949 | } |
| 9950 | |
| 9951 | void TestRegistry::registerTest(TestCase const &testCase) { |
| 9952 | std::string name = testCase.getTestCaseInfo().name; |
| 9953 | if (name.empty()) { |
| 9954 | ReusableStringStream rss; |
| 9955 | rss << "Anonymous test case " << ++m_unnamedCount; |
| 9956 | return registerTest(testCase.withName(rss.str())); |
| 9957 | } |
| 9958 | m_functions.push_back(testCase); |
| 9959 | } |
| 9960 | |
| 9961 | std::vector<TestCase> const &TestRegistry::getAllTests() const { |
| 9962 | return m_functions; |
no test coverage detected