MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / enforceNoDuplicateTestCases

Function enforceNoDuplicateTestCases

Bcore/src/main/cpp/Dobby/tests/catch.hpp:9927–9936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9925}
9926
9927void 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
9938std::vector<TestCase> filterTests(std::vector<TestCase> const &testCases, TestSpec const &testSpec,
9939 IConfig const &config) {

Callers 1

catch.hppFile · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected