A string passed to EXPECT_DEATH (etc.) is caught by one of these overloads and interpreted as a regex (rather than an Eq matcher) for legacy compatibility.
| 9779 | // and interpreted as a regex (rather than an Eq matcher) for legacy |
| 9780 | // compatibility. |
| 9781 | inline Matcher<const ::std::string&> MakeDeathTestMatcher( |
| 9782 | ::testing::internal::RE regex) { |
| 9783 | return ContainsRegex(regex.pattern()); |
| 9784 | } |
| 9785 | inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) { |
| 9786 | return ContainsRegex(regex); |
| 9787 | } |
nothing calls this directly
no test coverage detected