#include <stdio.h>
#include "util/test.h"
#include "util/flags.h"
#include "util/logging.h"
#include "util/strutil.h"
#include "re2/testing/exhaustive_tester.h"
#include "re2/testing/tester.h"
Go to the source code of this file.
|
| DEFINE_FLAG (bool, show_regexps, false, "show regexps during testing") |
|
| DEFINE_FLAG (int, max_bad_regexp_inputs, 1, "Stop testing a regular expression after finding this many " "strings that break it.") |
|
void | re2::EgrepTest (int maxatoms, int maxops, const std::string &alphabet, int maxstrlen, const std::string &stralphabet, const std::string &wrapper) |
|
static char * | re2::escape (const StringPiece &sp) |
|
void | re2::ExhaustiveTest (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, const std::string &topwrapper) |
|
static void | re2::PrintResult (const RE2 &re, const StringPiece &input, RE2::Anchor anchor, StringPiece *m, int n) |
|
◆ LOGGING
◆ DEFINE_FLAG() [1/2]
DEFINE_FLAG |
( |
bool |
, |
|
|
show_regexps |
, |
|
|
false |
, |
|
|
"show regexps during testing" |
|
|
) |
| |
◆ DEFINE_FLAG() [2/2]
DEFINE_FLAG |
( |
int |
, |
|
|
max_bad_regexp_inputs |
, |
|
|
1 |
, |
|
|
"Stop testing a regular expression after finding this many " "strings that break it." |
|
|
) |
| |