proxygen
|
Go to the source code of this file.
Macros | |
#define | DOIT(CREATION_EXPR) |
#define | DOIT(CREATION_EXPR) |
#define | DOIT(STMT) |
#define | DOIT(STMT) |
#define | DOIT(STMT) |
#define | DOIT(CTOR, STMT) |
Typedefs | |
typedef FutureException | eggs_t |
Functions | |
TEST (Promise, makeEmpty) | |
TEST (Promise, special) | |
TEST (Promise, getSemiFuture) | |
TEST (Promise, getFuture) | |
TEST (Promise, setValueUnit) | |
TEST (Promise, ctorPostconditionValid) | |
TEST (Promise, ctorPostconditionInvalid) | |
TEST (Promise, lacksPreconditionValid) | |
TEST (Promise, hasPreconditionValid) | |
TEST (Promise, hasPostconditionValid) | |
TEST (Promise, hasPostconditionInvalid) | |
TEST (Promise, setValueSemiFuture) | |
TEST (Promise, setValue) | |
TEST (Promise, setException) | |
TEST (Promise, setWith) | |
TEST (Promise, isFulfilled) | |
TEST (Promise, isFulfilledWithFuture) | |
TEST (Promise, brokenOnDelete) | |
TEST (Promise, brokenPromiseHasTypeInfo) | |
Variables | |
static eggs_t | eggs ("eggs") |
#define DOIT | ( | CREATION_EXPR | ) |
Referenced by TEST().
#define DOIT | ( | CREATION_EXPR | ) |
#define DOIT | ( | STMT | ) |
#define DOIT | ( | STMT | ) |
#define DOIT | ( | STMT | ) |
#define DOIT | ( | CTOR, | |
STMT | |||
) |
typedef FutureException eggs_t |
Definition at line 26 of file PromiseTest.cpp.
TEST | ( | Promise | , |
makeEmpty | |||
) |
Definition at line 29 of file PromiseTest.cpp.
References EXPECT_TRUE, and folly::Promise< T >::makeEmpty().
TEST | ( | Promise | , |
special | |||
) |
Definition at line 34 of file PromiseTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, and folly::value().
TEST | ( | Promise | , |
getSemiFuture | |||
) |
Definition at line 41 of file PromiseTest.cpp.
References EXPECT_FALSE, f, folly::Promise< T >::getSemiFuture(), and folly::futures::detail::FutureBase< T >::isReady().
TEST | ( | Promise | , |
getFuture | |||
) |
Definition at line 47 of file PromiseTest.cpp.
References EXPECT_FALSE, f, folly::Promise< T >::getFuture(), and folly::futures::detail::FutureBase< T >::isReady().
TEST | ( | Promise | , |
setValueUnit | |||
) |
Definition at line 53 of file PromiseTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, folly::Promise< T >::makeEmpty(), and folly::Promise< T >::setValue().
TEST | ( | Promise | , |
ctorPostconditionValid | |||
) |
Definition at line 71 of file PromiseTest.cpp.
References DOIT.
TEST | ( | Promise | , |
ctorPostconditionInvalid | |||
) |
Definition at line 92 of file PromiseTest.cpp.
References DOIT.
TEST | ( | Promise | , |
lacksPreconditionValid | |||
) |
Definition at line 110 of file PromiseTest.cpp.
References folly::copy(), DOIT, and folly::gen::move.
TEST | ( | Promise | , |
hasPreconditionValid | |||
) |
Definition at line 144 of file PromiseTest.cpp.
References DOIT.
TEST | ( | Promise | , |
hasPostconditionValid | |||
) |
TEST | ( | Promise | , |
hasPostconditionInvalid | |||
) |
Definition at line 190 of file PromiseTest.cpp.
References DOIT, and folly::gen::move.
TEST | ( | Promise | , |
setValueSemiFuture | |||
) |
Definition at line 235 of file PromiseTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, f, folly::Promise< T >::getSemiFuture(), folly::gen::move, name, ptr, folly::Promise< T >::setValue(), v, and folly::value().
TEST | ( | Promise | , |
setValue | |||
) |
Definition at line 273 of file PromiseTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, f, folly::Promise< T >::getFuture(), folly::gen::move, name, ptr, folly::Promise< T >::setValue(), v, and folly::value().
TEST | ( | Promise | , |
setException | |||
) |
Definition at line 311 of file PromiseTest.cpp.
References eggs, EXPECT_THROW, f, folly::Promise< T >::getFuture(), and folly::Promise< T >::setException().
TEST | ( | Promise | , |
setWith | |||
) |
Definition at line 326 of file PromiseTest.cpp.
References eggs, EXPECT_EQ, EXPECT_THROW, f, folly::Promise< T >::getFuture(), and folly::Promise< T >::setWith().
TEST | ( | Promise | , |
isFulfilled | |||
) |
Definition at line 341 of file PromiseTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, folly::Promise< T >::isFulfilled(), and folly::Promise< T >::setValue().
TEST | ( | Promise | , |
isFulfilledWithFuture | |||
) |
Definition at line 349 of file PromiseTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, folly::Promise< T >::getFuture(), folly::Promise< T >::isFulfilled(), and folly::Promise< T >::setValue().
TEST | ( | Promise | , |
brokenOnDelete | |||
) |
Definition at line 358 of file PromiseTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, f, and folly::pushmi::detail::t.
TEST | ( | Promise | , |
brokenPromiseHasTypeInfo | |||
) |