Merge pull request #2862 from prehistoric-penguin:prehistoric-penguin-patch-1

PiperOrigin-RevId: 313289519
This commit is contained in:
Derek Mauro 2020-05-28 19:54:47 -04:00
commit 130ae78b99

View File

@ -78,17 +78,7 @@ const char* TypedTestSuitePState::VerifyRegisteredTestNames(
continue;
}
bool found = false;
for (RegisteredTestIter it = registered_tests_.begin();
it != registered_tests_.end();
++it) {
if (name == it->first) {
found = true;
break;
}
}
if (found) {
if (registered_tests_.count(name) != 0) {
tests.insert(name);
} else {
errors << "No test named " << name