#include <stdio.h>
#include <string>
#include <vector>
#include "util/test.h"
#include "util/flags.h"
#include "re2/testing/exhaustive_tester.h"
Go to the source code of this file.
|
| 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) |
|
◆ 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." |
|
|
) |
| |