Namespaces | Functions
re2/re2/testing/random_test.cc File Reference
#include <stdio.h>
#include <string>
#include <vector>
#include "util/test.h"
#include "util/flags.h"
#include "re2/testing/exhaustive_tester.h"
Include dependency graph for re2/re2/testing/random_test.cc:

Go to the source code of this file.

Namespaces

 re2
 

Functions

 DEFINE_FLAG (int, regexpcount, 100, "How many random regexps to generate.")
 
 DEFINE_FLAG (int, regexpseed, 404, "Random regexp seed.")
 
 DEFINE_FLAG (int, stringcount, 100, "How many random strings to generate.")
 
 DEFINE_FLAG (int, stringseed, 200, "Random string seed.")
 
static void re2::RandomTest (int maxatoms, int maxops, const std::vector< std::string > &alphabet, const std::vector< std::string > &ops, int maxstrlen, const std::vector< std::string > &stralphabet, const std::string &wrapper)
 
 re2::TEST (Random, BigEgrepCaptures)
 
 re2::TEST (Random, BigEgrepLiterals)
 
 re2::TEST (Random, Complicated)
 
 re2::TEST (Random, SmallEgrepCaptures)
 
 re2::TEST (Random, SmallEgrepLiterals)
 

Function Documentation

◆ DEFINE_FLAG() [1/4]

DEFINE_FLAG ( int  ,
regexpcount  ,
100  ,
"How many random regexps to generate."   
)

◆ DEFINE_FLAG() [2/4]

DEFINE_FLAG ( int  ,
regexpseed  ,
404  ,
"Random regexp seed."   
)

◆ DEFINE_FLAG() [3/4]

DEFINE_FLAG ( int  ,
stringcount  ,
100  ,
"How many random strings to generate."   
)

◆ DEFINE_FLAG() [4/4]

DEFINE_FLAG ( int  ,
stringseed  ,
200  ,
"Random string seed."   
)


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27