Searched refs:ExpectedMsgs (Results 1 – 2 of 2) sorted by relevance
43 static void expectSameErrors(std::unordered_set<std::string> ExpectedMsgs, in expectSameErrors() argument45 auto AnyErrorMsgMatch = [&ExpectedMsgs](std::string &&ErrorMsg) -> bool { in expectSameErrors()46 for (auto ExpectedMsgItr = ExpectedMsgs.begin(), in expectSameErrors()47 ExpectedMsgEnd = ExpectedMsgs.end(); in expectSameErrors()50 ExpectedMsgs.erase(ExpectedMsgItr); in expectSameErrors()65 } while (RemainingErrors && !ExpectedMsgs.empty()); in expectSameErrors()67 EXPECT_TRUE(ExpectedMsgs.empty()) in expectSameErrors()69 << toString(ExpectedMsgs); in expectSameErrors()
35 void checkError(ArrayRef<std::string> ExpectedMsgs, Error Err) { in checkError() argument40 ASSERT_LT(WhichMsg, ExpectedMsgs.size()); in checkError()43 EXPECT_EQ(Actual.message(), ExpectedMsgs[WhichMsg++]); in checkError()45 EXPECT_EQ(WhichMsg, ExpectedMsgs.size()); in checkError()