MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / TEST

Function TEST

extern/re2/re2/testing/possible_match_test.cc:23–27  ·  view source on GitHub ↗

Test that C++ strings are compared as uint8s, not int8s. PossibleMatchRange doesn't depend on this, but callers probably will.

Source from the content-addressed store, hash-verified

21// Test that C++ strings are compared as uint8s, not int8s.
22// PossibleMatchRange doesn't depend on this, but callers probably will.
23TEST(CplusplusStrings, EightBit) {
24 std::string s = "\x70";
25 std::string t = "\xA0";
26 EXPECT_LT(s, t);
27}
28
29struct PrefixTest {
30 const char* regexp;

Callers

nothing calls this directly

Calls 11

CEscapeFunction · 0.85
ParseFunction · 0.85
SplitFunction · 0.85
ExplodeFunction · 0.85
CompileToProgMethod · 0.80
GenerateMethod · 0.80
RE2Class · 0.50
PossibleMatchRangeMethod · 0.45
DecrefMethod · 0.45
regexpsMethod · 0.45
testsMethod · 0.45

Tested by

no test coverage detected