Home | History | Annotate | Download | only in gtest

Lines Matching refs:regex

214 //   GTEST_USES_POSIX_RE    - enhanced POSIX regex is used. Do not confuse with
217 // GTEST_USES_SIMPLE_RE - our own simple regex is used;
368 // On some platforms, <regex.h> needs someone to define size_t, and
372 # include <regex.h> // NOLINT
378 // <regex.h> is not available on Windows. Use our own simple regex
384 // <regex.h> may not be available on this platform. Use our own
385 // simple regex implementation instead.
1869 // A simple C++ wrapper for <regex.h>. It uses the POSIX Extended
1878 RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT
1882 RE(const ::string& regex) { Init(regex.c_str()); } // NOLINT
1886 RE(const char* regex) { Init(regex); } // NOLINT
1889 // Returns the string representation of the regex.
1921 void Init(const char* regex);
8024 static bool Create(const char* statement, const RE* regex,
8088 virtual bool Create(const char* statement, const RE* regex,
8095 virtual bool Create(const char* statement, const RE* regex,
8130 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \
8133 const ::testing::internal::RE& gtest_regex = (regex); \
8217 // regex - A regex that a macro such as EXPECT_DEATH would use to test
8229 // statement and regex are compiled (and thus syntactically correct) but
8235 # define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \
8242 ::testing::internal::RE::PartialMatch(".*", (regex)); \
8303 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
8304 // which uses the POSIX extended regex syntax.
8306 // On other platforms (e.g. Windows), we only support a simple regex
8310 // or POSIX extended regex syntax. For example, we don't support
8315 // subset of both PCRE and POSIX extended regex, so it's easy to
8342 // If you accidentally use PCRE or POSIX extended regex features
8348 // as a compiled regex library, but should perform well enough for a
8368 // that matches regex.
8369 # define ASSERT_EXIT(statement, predicate, regex) \
8370 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
8374 # define EXPECT_EXIT(statement, predicate, regex) \
8375 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
8379 // signal, and emitting error output that matches regex.
8380 # define ASSERT_DEATH(statement, regex) \
8381 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
8385 # define EXPECT_DEATH(statement, regex) \
8386 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
8459 # define EXPECT_DEBUG_DEATH(statement, regex) \
8462 # define ASSERT_DEBUG_DEATH(statement, regex) \
8467 # define EXPECT_DEBUG_DEATH(statement, regex) \
8468 EXPECT_DEATH(statement, regex)
8470 # define ASSERT_DEBUG_DEATH(statement, regex) \
8471 ASSERT_DEATH(statement, regex)
8476 // EXPECT_DEATH_IF_SUPPORTED(statement, regex) and
8477 // ASSERT_DEATH_IF_SUPPORTED(statement, regex) expand to real death tests if
8482 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
8483 EXPECT_DEATH(statement, regex)
8484 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
8485 ASSERT_DEATH(statement, regex)
8487 # define EXPECT_DEATH_IF_SUPPORTED(statement, regex) \
8488 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, )
8489 # define ASSERT_DEATH_IF_SUPPORTED(statement, regex) \
8490 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, return)
17686 // A filter is a colon-separated list of glob (not regex) patterns,