EXPECT_PCRE_MATCH

Easy PCRE regex matching. Note that pattern must match the ENTIRE target, so use .* at the start and end of the pattern, as appropriate. See http://regex101.com/ for a PCRE simulator.

Synopsis

Declared in <folly/testing/TestUtil.h>

#define EXPECT_PCRE_MATCH(pattern_stringpiece, target_stringpiece)

Parameters

NameDescription
pattern_stringpieceThe PCRE pattern to match against.
target_stringpieceThe target string that must match the pattern.