MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / MakeDeathTestMatcher

Function MakeDeathTestMatcher

tests/gtest/gtest.h:9781–9784  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

9779// and interpreted as a regex (rather than an Eq matcher) for legacy
9780// compatibility.
9781inline Matcher<const ::std::string&> MakeDeathTestMatcher(
9782 ::testing::internal::RE regex) {
9783 return ContainsRegex(regex.pattern());
9784}
9785inline Matcher<const ::std::string&> MakeDeathTestMatcher(const char* regex) {
9786 return ContainsRegex(regex);
9787}

Callers

nothing calls this directly

Calls 1

ContainsRegexFunction · 0.85

Tested by

no test coverage detected