proxygen
|
#include <iostream>
#include <folly/Overload.h>
#include <folly/functional/ApplyTuple.h>
#include <folly/portability/GTest.h>
#include <array>
#include <memory>
Go to the source code of this file.
Classes | |
struct | MemberFunc |
Functions | |
TEST (ApplyTuple, Test) | |
TEST (ApplyTuple, Mutable) | |
TEST (ApplyTuple, ConstOverloads) | |
TEST (ApplyTuple, RefOverloads) | |
TEST (ApplyTuple, MemberFunction) | |
TEST (ApplyTuple, MemberFunctionWithRefWrapper) | |
TEST (ApplyTuple, MemberFunctionWithConstPointer) | |
TEST (ApplyTuple, MemberFunctionWithSharedPtr) | |
TEST (ApplyTuple, MemberFunctionWithUniquePtr) | |
TEST (ApplyTuple, Array) | |
TEST (ApplyTuple, Pair) | |
TEST (ApplyTuple, MultipleTuples) | |
TEST (ApplyTuple, UncurryCopyMove) | |
TEST (ApplyTuple, Uncurry) | |
TEST (ApplyTuple, UncurryStdFind) | |
TEST (MakeFromTupleTest, make_from_tuple) | |
TEST (MakeIndexSequenceFromTuple, Basic) | |
TEST (ApplyResult, Basic) | |
TEST (IsApplicable, Basic) | |
TEST (IsNothrowApplicable, Basic) | |
TEST (IsApplicableR, Basic) | |
TEST (IsNothrowApplicableR, Basic) | |
TEST (ForwardTuple, Basic) | |
TEST | ( | ApplyTuple | , |
Test | |||
) |
Definition at line 125 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, folly::gen::guard(), m, and std::tr1::make_tuple().
TEST | ( | ApplyTuple | , |
Mutable | |||
) |
Definition at line 169 of file ApplyTupleTest.cpp.
References a, folly::apply(), b, c, and std::tr1::make_tuple().
TEST | ( | ApplyTuple | , |
ConstOverloads | |||
) |
Definition at line 176 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, std::tr1::make_tuple(), and folly::gen::move.
TEST | ( | ApplyTuple | , |
RefOverloads | |||
) |
Definition at line 201 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, std::tr1::make_tuple(), and folly::gen::move.
TEST | ( | ApplyTuple | , |
MemberFunction | |||
) |
Definition at line 241 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, MemberFunc::getX(), std::tr1::make_tuple(), MemberFunc::setX(), and MemberFunc::x.
TEST | ( | ApplyTuple | , |
MemberFunctionWithRefWrapper | |||
) |
Definition at line 254 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, MemberFunc::getX(), std::tr1::make_tuple(), and MemberFunc::x.
TEST | ( | ApplyTuple | , |
MemberFunctionWithConstPointer | |||
) |
Definition at line 262 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, MemberFunc::getX(), std::tr1::make_tuple(), and MemberFunc::x.
TEST | ( | ApplyTuple | , |
MemberFunctionWithSharedPtr | |||
) |
Definition at line 273 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, MemberFunc::getX(), std::tr1::make_tuple(), and MemberFunc::x.
TEST | ( | ApplyTuple | , |
MemberFunctionWithUniquePtr | |||
) |
Definition at line 283 of file ApplyTupleTest.cpp.
References folly::apply(), EXPECT_EQ, MemberFunc::getX(), std::tr1::make_tuple(), and MemberFunc::x.
TEST | ( | ApplyTuple | , |
Array | |||
) |
TEST | ( | ApplyTuple | , |
Pair | |||
) |
Definition at line 298 of file ApplyTupleTest.cpp.
References add, folly::apply(), EXPECT_EQ, and x.
TEST | ( | ApplyTuple | , |
MultipleTuples | |||
) |
Definition at line 304 of file ApplyTupleTest.cpp.
References add, folly::apply(), EXPECT_EQ, std::tr1::make_tuple(), and x.
TEST | ( | ApplyTuple | , |
UncurryCopyMove | |||
) |
Definition at line 345 of file ApplyTupleTest.cpp.
References a, b, EXPECT_EQ, EXPECT_NE, std::tr1::make_tuple(), folly::gen::move, string, and folly::uncurry().
TEST | ( | ApplyTuple | , |
Uncurry | |||
) |
Definition at line 363 of file ApplyTupleTest.cpp.
References a, b, cat, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::gen::move, string, and folly::uncurry().
TEST | ( | ApplyTuple | , |
UncurryStdFind | |||
) |
Definition at line 393 of file ApplyTupleTest.cpp.
References a, testing::Args(), b, EXPECT_EQ, and folly::uncurry().
TEST | ( | MakeFromTupleTest | , |
make_from_tuple | |||
) |
Definition at line 410 of file ApplyTupleTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::gen::move, and string.
TEST | ( | MakeIndexSequenceFromTuple | , |
Basic | |||
) |
Definition at line 431 of file ApplyTupleTest.cpp.
References EXPECT_TRUE, and value.
TEST | ( | ApplyResult | , |
Basic | |||
) |
Definition at line 452 of file ApplyTupleTest.cpp.
References EXPECT_TRUE, f, folly::overload(), and value.
TEST | ( | IsApplicable | , |
Basic | |||
) |
Definition at line 478 of file ApplyTupleTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, folly::overload(), and value.
TEST | ( | IsNothrowApplicable | , |
Basic | |||
) |
Definition at line 494 of file ApplyTupleTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, folly::pushmi::__adl::noexcept(), folly::overload(), and value.
TEST | ( | IsApplicableR | , |
Basic | |||
) |
Definition at line 514 of file ApplyTupleTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, folly::pushmi::__adl::noexcept(), folly::overload(), and value.
TEST | ( | IsNothrowApplicableR | , |
Basic | |||
) |
Definition at line 534 of file ApplyTupleTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, folly::pushmi::__adl::noexcept(), folly::overload(), and value.
TEST | ( | ForwardTuple | , |
Basic | |||
) |
Definition at line 562 of file ApplyTupleTest.cpp.
References folly::as_const(), EXPECT_EQ, EXPECT_TRUE, folly::forward_tuple(), std::tr1::make_tuple(), folly::gen::move, and value.