MCPcopy Create free account
hub / github.com/apache/trafficserver / TEST

Function TEST

lib/yamlcpp/test/regex_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9const auto MIN_CHAR = Stream::eof() + 1;
10
11TEST(RegExTest, Empty) {
12 RegEx empty;
13 EXPECT_TRUE(empty.Matches(std::string()));
14 EXPECT_EQ(0, empty.Match(std::string()));
15 for (int i = MIN_CHAR; i < 128; ++i) {
16 auto str = std::string(1, char(i));
17 EXPECT_FALSE(empty.Matches(str));
18 EXPECT_EQ(-1, empty.Match(str));
19 }
20}
21
22TEST(RegExTest, Range) {
23 for (int i = MIN_CHAR; i < 128; ++i) {

Callers 1

test_cppapi.ccFile · 0.50

Calls 6

stringClass · 0.85
RegExClass · 0.85
MatchesMethod · 0.80
MatchMethod · 0.45
sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected