proxygen
|
Go to the source code of this file.
Functions | |
TEST (EvictingCacheMap, SanityTest) | |
TEST (EvictingCacheMap, PruneTest) | |
TEST (EvictingCacheMap, PruneHookTest) | |
TEST (EvictingCacheMap, SetMaxSize) | |
TEST (EvictingCacheMap, SetClearSize) | |
TEST (EvictingCacheMap, DestructorInvocationTest) | |
TEST (EvictingCacheMap, LruSanityTest) | |
TEST (EvictingCacheMap, LruPromotionTest) | |
TEST (EvictingCacheMap, LruNoPromotionTest) | |
TEST (EvictingCacheMap, IteratorSanityTest) | |
TEST (EvictingCacheMap, FindTest) | |
TEST (EvictingCacheMap, FindWithoutPromotionTest) | |
TEST (EvictingCacheMap, IteratorOrderingTest) | |
TEST (EvictingCacheMap, MoveTest) | |
TEST (EvictingCacheMap, CustomKeyEqual) | |
TEST | ( | EvictingCacheMap | , |
SanityTest | |||
) |
Definition at line 24 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::erase(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
PruneTest | |||
) |
Definition at line 80 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::prune(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
PruneHookTest | |||
) |
Definition at line 162 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, k, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::prune(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::setPruneHook(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size(), sum(), and v.
TEST | ( | EvictingCacheMap | , |
SetMaxSize | |||
) |
Definition at line 264 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_TRUE, i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::setMaxSize(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
SetClearSize | |||
) |
Definition at line 286 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_TRUE, i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::setClearSize(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::setMaxSize(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
DestructorInvocationTest | |||
) |
Definition at line 309 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::prune(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size(), sum(), and val.
TEST | ( | EvictingCacheMap | , |
LruSanityTest | |||
) |
Definition at line 414 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_GE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
LruPromotionTest | |||
) |
Definition at line 440 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_GE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), min, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
LruNoPromotionTest | |||
) |
Definition at line 471 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_GE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::getWithoutPromotion(), i, map(), min, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::size().
TEST | ( | EvictingCacheMap | , |
IteratorSanityTest | |||
) |
Definition at line 502 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::begin(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::end(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), seen, and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set().
TEST | ( | EvictingCacheMap | , |
FindTest | |||
) |
Definition at line 522 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::begin(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::end(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::find(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set().
TEST | ( | EvictingCacheMap | , |
FindWithoutPromotionTest | |||
) |
Definition at line 553 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::begin(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::end(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::findWithoutPromotion(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set().
TEST | ( | EvictingCacheMap | , |
IteratorOrderingTest | |||
) |
Definition at line 574 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::begin(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::end(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::rbegin(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::rend(), and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set().
TEST | ( | EvictingCacheMap | , |
MoveTest | |||
) |
Definition at line 619 of file EvictingCacheMapTest.cpp.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::empty(), folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::exists(), EXPECT_EQ, EXPECT_TRUE, folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::get(), i, map(), folly::gen::move, and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::set().
TEST | ( | EvictingCacheMap | , |
CustomKeyEqual | |||
) |
Definition at line 636 of file EvictingCacheMapTest.cpp.
References a, b, testing::Eq(), EXPECT_EQ, EXPECT_TRUE, i, and map().