Go to the documentation of this file.
10 #include "util/test.h"
12 #include "re2/testing/string_generator.h"
13 #include "re2/testing/regexp_generator.h"
54 for (
const char *p = s.c_str(); *p !=
'\0'; ) {
77 for (
int i = 0;
i <=
len;
i++)
82 TEST(StringGenerator, NoLength) {
86 TEST(StringGenerator, NoLengthNoAlphabet) {
90 TEST(StringGenerator, NoAlphabet) {
94 TEST(StringGenerator, Simple) {
99 RunTest(4,
"abc\xE2\x98\xBA",
false);
102 TEST(StringGenerator, GenNULL) {
107 RunTest(4,
"abc\xE2\x98\xBA",
true);
int utflen(const char *s)
static void RunTest(int len, const std::string &alphabet, bool donull)
char * utfrune(const char *s, Rune c)
static const char alphabet[]
#define EXPECT_LE(val1, val2)
static std::string UTF8(Rune r)
static int64_t IntegerPower(int i, int e)
const_pointer data() const
std::vector< std::string > Explode(const StringPiece &s)
#define EXPECT_LT(val1, val2)
int chartorune(Rune *rune, const char *str)
#define EXPECT_TRUE(condition)
TEST(TestCharClassBuilder, Adds)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:21