proxygen
|
#include <string>
#include <tuple>
#include <vector>
#include <folly/FBVector.h>
#include <folly/Range.h>
#include <folly/gen/Base.h>
#include <folly/gen/Combine.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (CombineGen, Interleave) | |
TEST (CombineGen, Zip) | |
TEST (CombineGen, TupleFlatten) | |
int | main (int argc, char *argv[]) |
Variables | |
const folly::gen::detail::Map< folly::gen::detail::MergeTuples > | gTupleFlatten {} |
auto | even = [](int i) -> bool { return i % 2 == 0; } |
auto | odd = [](int i) -> bool { return i % 2 == 1; } |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 170 of file CombineTest.cpp.
References testing::InitGoogleTest(), and RUN_ALL_TESTS().
TEST | ( | CombineGen | , |
Interleave | |||
) |
Definition at line 37 of file CombineTest.cpp.
References even, EXPECT_EQ, folly::gen::filter(), folly::gen::interleave(), odd, folly::gen::seq(), and folly::gen::take().
TEST | ( | CombineGen | , |
Zip | |||
) |
Definition at line 52 of file CombineTest.cpp.
References ASSERT_EQ, ASSERT_FALSE, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::gen::move, folly::gen::seq(), folly::gen::take(), and folly::gen::zip().
TEST | ( | CombineGen | , |
TupleFlatten | |||
) |
Definition at line 86 of file CombineTest.cpp.
References ASSERT_EQ, folly::gen::assert_type(), EXPECT_EQ, folly::gen::from(), gTupleFlatten, std::tr1::make_tuple(), and folly::gen::zip().
Definition at line 34 of file CombineTest.cpp.
Referenced by TEST().
const folly::gen::detail::Map<folly::gen::detail::MergeTuples> gTupleFlatten {} |
Definition at line 32 of file CombineTest.cpp.
Referenced by TEST().
Definition at line 35 of file CombineTest.cpp.
Referenced by proxygen::HTTPParallelCodec::isInitiatedStream(), proxygen::SPDYCodec::onPing(), and TEST().