|
proxygen
|
#include <iosfwd>#include <map>#include <vector>#include <folly/functional/ApplyTuple.h>#include <folly/gen/String.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Typedefs | |
| using | vec = vector< string > |
Functions | |
| TEST (StringGen, EmptySplit) | |
| TEST (StringGen, Split) | |
| TEST (StringGen, SplitByNewLine) | |
| TEST (StringGen, EmptyResplit) | |
| TEST (StringGen, Resplit) | |
| TEST (StringGen, ResplitKeepDelimiter) | |
| TEST (StringGen, EachToTuple) | |
| TEST (StringGen, EachToPair) | |
| void | checkResplitMaxLength (vector< string > ins, char delim, uint64_t maxLength, vector< string > outs) |
| TEST (StringGen, ResplitMaxLength) | |
| template<typename F > | |
| void | runUnsplitSuite (F fn) |
| TEST (StringGen, Unsplit) | |
| TEST (StringGen, Batch) | |
| TEST (StringGen, UncurryTuple) | |
| TEST (StringGen, UncurryPair) | |
Variables | |
| static auto | collect = eachTo<std::string>() | as<vector>() |
Definition at line 35 of file StringTest.cpp.
| void checkResplitMaxLength | ( | vector< string > | ins, |
| char | delim, | ||
| uint64_t | maxLength, | ||
| vector< string > | outs | ||
| ) |
Definition at line 265 of file StringTest.cpp.
References folly::Range< Iter >::begin(), folly::Range< Iter >::end(), EXPECT_EQ, i, folly::join(), s, and folly::gen::streamSplitter().
Referenced by TEST().
| void runUnsplitSuite | ( | F | fn | ) |
Definition at line 313 of file StringTest.cpp.
Referenced by TEST().
| TEST | ( | StringGen | , |
| EmptySplit | |||
| ) |
Definition at line 39 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, folly::gen::split(), and folly::gen::take().
| TEST | ( | StringGen | , |
| Split | |||
| ) |
Definition at line 66 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, folly::gen::split(), and folly::gen::take().
| TEST | ( | StringGen | , |
| SplitByNewLine | |||
| ) |
Definition at line 92 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, and folly::gen::lines().
| TEST | ( | StringGen | , |
| EmptyResplit | |||
| ) |
Definition at line 100 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, folly::gen::from(), and folly::gen::resplit().
| TEST | ( | StringGen | , |
| Resplit | |||
| ) |
Definition at line 121 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, folly::gen::from(), and folly::gen::resplit().
| TEST | ( | StringGen | , |
| ResplitKeepDelimiter | |||
| ) |
Definition at line 135 of file StringTest.cpp.
References folly::collect(), EXPECT_EQ, folly::gen::from(), and folly::gen::resplit().
| TEST | ( | StringGen | , |
| EachToTuple | |||
| ) |
Definition at line 149 of file StringTest.cpp.
References EXPECT_EQ, EXPECT_THROW, folly::gen::lines(), std::tr1::make_tuple(), and folly::gen::split().
| TEST | ( | StringGen | , |
| EachToPair | |||
| ) |
Definition at line 232 of file StringTest.cpp.
References folly::gen::as(), EXPECT_EQ, folly::gen::lines(), and folly::gen::split().
| TEST | ( | StringGen | , |
| ResplitMaxLength | |||
| ) |
Definition at line 294 of file StringTest.cpp.
References checkResplitMaxLength().
| TEST | ( | StringGen | , |
| Unsplit | |||
| ) |
Definition at line 322 of file StringTest.cpp.
References buffer(), EXPECT_EQ, runUnsplitSuite(), s, folly::gen::seq(), folly::gen::split(), string, and folly::gen::unsplit().
| TEST | ( | StringGen | , |
| Batch | |||
| ) |
Definition at line 354 of file StringTest.cpp.
References folly::gen::batch(), chunks, folly::gen::count, EXPECT_EQ, folly::gen::from(), folly::gen::lines(), folly::gen::rconcat, and folly::gen::resplit().
| TEST | ( | StringGen | , |
| UncurryTuple | |||
| ) |
Definition at line 373 of file StringTest.cpp.
References EXPECT_EQ, folly::gen::map(), folly::gen::split(), folly::gen::sum, and folly::uncurry().
| TEST | ( | StringGen | , |
| UncurryPair | |||
| ) |
Definition at line 381 of file StringTest.cpp.
References EXPECT_EQ, folly::gen::map(), folly::gen::split(), folly::gen::sum, and folly::uncurry().
|
static |
Definition at line 37 of file StringTest.cpp.