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

Function ContainsRegex

tests/gtest/gtest.h:9585–9588  ·  view source on GitHub ↗

Matches a string that contains regular expression 'regex'. The matcher takes ownership of 'regex'.

Source from the content-addressed store, hash-verified

9583// Matches a string that contains regular expression 'regex'.
9584// The matcher takes ownership of 'regex'.
9585inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex(
9586 const internal::RE* regex) {
9587 return MakePolymorphicMatcher(internal::MatchesRegexMatcher(regex, false));
9588}
9589inline PolymorphicMatcher<internal::MatchesRegexMatcher> ContainsRegex(
9590 const std::string& regex) {
9591 return ContainsRegex(new internal::RE(regex));

Callers 1

MakeDeathTestMatcherFunction · 0.85

Calls 2

MakePolymorphicMatcherFunction · 0.85
MatchesRegexMatcherClass · 0.85

Tested by

no test coverage detected