| 9925 | } |
| 9926 | |
| 9927 | void enforceNoDuplicateTestCases(std::vector<TestCase> const &functions) { |
| 9928 | std::set<TestCase> seenFunctions; |
| 9929 | for (auto const &function : functions) { |
| 9930 | auto prev = seenFunctions.insert(function); |
| 9931 | CATCH_ENFORCE(prev.second, "error: TEST_CASE( \"" << function.name << "\" ) already defined.\n" |
| 9932 | << "\tFirst seen at " << prev.first->getTestCaseInfo().lineInfo |
| 9933 | << "\n" |
| 9934 | << "\tRedefined at " << function.getTestCaseInfo().lineInfo); |
| 9935 | } |
| 9936 | } |
| 9937 | |
| 9938 | std::vector<TestCase> filterTests(std::vector<TestCase> const &testCases, TestSpec const &testSpec, |
| 9939 | IConfig const &config) { |