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

Method GenerateRandom

extern/re2/re2/testing/regexp_generator.cc:73–80  ·  view source on GitHub ↗

Generates random regular expressions, calling HandleRegexp for each one.

Source from the content-addressed store, hash-verified

71
72// Generates random regular expressions, calling HandleRegexp for each one.
73void RegexpGenerator::GenerateRandom(int32_t seed, int n) {
74 rng_.seed(seed);
75
76 for (int i = 0; i < n; i++) {
77 std::vector<std::string> postfix;
78 GenerateRandomPostfix(&postfix, 0, 0, 0);
79 }
80}
81
82// Counts and returns the number of occurrences of "%s" in s.
83static int CountArgs(const std::string& s) {

Callers 1

RandomTestFunction · 0.80

Calls 1

seedMethod · 0.80

Tested by 1

RandomTestFunction · 0.64