Lines Matching refs:__pattern
57 #define __LIBBASE_GENERIC_REGEX_SEARCH(__s, __pattern) \ argument
58 (std::regex_search(__s, std::basic_regex<std::decay<decltype(__s[0])>::type>((__pattern))))
60 #define ASSERT_MATCH(__string, __pattern) \ argument
63 if (!__LIBBASE_GENERIC_REGEX_SEARCH(__s, (__pattern))) { \
64 FAIL() << "regex mismatch: expected " << (__pattern) << " in:\n" << __s; \
68 #define ASSERT_NOT_MATCH(__string, __pattern) \ argument
71 if (__LIBBASE_GENERIC_REGEX_SEARCH(__s, (__pattern))) { \
72 FAIL() << "regex mismatch: expected to not find " << (__pattern) << " in:\n" << __s; \
76 #define EXPECT_MATCH(__string, __pattern) \ argument
79 if (!__LIBBASE_GENERIC_REGEX_SEARCH(__s, (__pattern))) { \
80 ADD_FAILURE() << "regex mismatch: expected " << (__pattern) << " in:\n" << __s; \
84 #define EXPECT_NOT_MATCH(__string, __pattern) \ argument
87 if (__LIBBASE_GENERIC_REGEX_SEARCH(__s, (__pattern))) { \
88 ADD_FAILURE() << "regex mismatch: expected to not find " << (__pattern) << " in:\n" << __s; \