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

Function TEST

extern/re2/re2/testing/exhaustive1_test.cc:16–25  ·  view source on GitHub ↗

Test simple repetition operators

Source from the content-addressed store, hash-verified

14
15// Test simple repetition operators
16TEST(Repetition, Simple) {
17 std::vector<std::string> ops = Split(" ",
18 "%s{0} %s{0,} %s{1} %s{1,} %s{0,1} %s{0,2} "
19 "%s{1,2} %s{2} %s{2,} %s{3,4} %s{4,5} "
20 "%s* %s+ %s? %s*? %s+? %s??");
21 ExhaustiveTest(3, 2, Explode("abc."), ops,
22 6, Explode("ab"), "(?:%s)", "");
23 ExhaustiveTest(3, 2, Explode("abc."), ops,
24 40, Explode("a"), "(?:%s)", "");
25}
26
27// Test capturing parens -- (a) -- inside repetition operators
28TEST(Repetition, Capturing) {

Callers

nothing calls this directly

Calls 3

SplitFunction · 0.85
ExhaustiveTestFunction · 0.85
ExplodeFunction · 0.85

Tested by

no test coverage detected