proxygen
|
#include <folly/sorted_vector_types.h>
#include <iterator>
#include <list>
#include <memory>
#include <string>
#include <folly/Range.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
struct | Movable |
Functions | |
TEST (SortedVectorTypes, SetAssignmentInitListTest) | |
TEST (SortedVectorTypes, MapAssignmentInitListTest) | |
TEST (SortedVectorTypes, SimpleSetTest) | |
TEST (SortedVectorTypes, TransparentSetTest) | |
TEST (SortedVectorTypes, BadHints) | |
TEST (SortedVectorTypes, SimpleMapTest) | |
TEST (SortedVectorTypes, TransparentMapTest) | |
TEST (SortedVectorTypes, Sizes) | |
TEST (SortedVectorTypes, InitializerLists) | |
TEST (SortedVectorTypes, CustomCompare) | |
TEST (SortedVectorTypes, GrowthPolicy) | |
TEST (SortedVectorTest, EmptyTest) | |
TEST (SortedVectorTest, MoveTest) | |
TEST (SortedVectorTest, ShrinkTest) | |
TEST (SortedVectorTypes, EraseTest) | |
TEST (SortedVectorTypes, EraseTest2) | |
std::vector< int > | extractValues (sorted_vector_set< CountCopyCtor > const &in) |
template<typename T , typename S > | |
std::vector< T > | makeVectorOfWrappers (std::vector< S > ss) |
TEST (SortedVectorTypes, TestSetBulkInsertionSortMerge) | |
TEST (SortedVectorTypes, TestSetBulkInsertionMiddleValuesEqualDuplication) | |
TEST (SortedVectorTypes, TestSetBulkInsertionSortMergeDups) | |
TEST (SortedVectorTypes, TestSetInsertionDupsOneByOne) | |
TEST (SortedVectorTypes, TestSetBulkInsertionSortNoMerge) | |
TEST (SortedVectorTypes, TestSetBulkInsertionNoSortMerge) | |
TEST (SortedVectorTypes, TestSetBulkInsertionNoSortNoMerge) | |
TEST (SortedVectorTypes, TestSetBulkInsertionEmptyRange) | |
TEST (SortedVectorTypes, TestBulkInsertionUncopyableTypes) | |
TEST (SortedVectorTypes, TestBulkInsertionMovableTypes) | |
TEST (SortedVectorTypes, TestSetCreationFromVector) | |
TEST (SortedVectorTypes, TestMapCreationFromVector) | |
TEST (SortedVectorTypes, TestBulkInsertionWithDuplicatesIntoEmptySet) | |
TEST (SortedVectorTypes, TestDataPointsToFirstElement) | |
std::vector<int> extractValues | ( | sorted_vector_set< CountCopyCtor > const & | in | ) |
Definition at line 570 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::begin(), c, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::end(), and folly::pushmi::operators::transform.
Referenced by TEST().
TEST | ( | SortedVectorTypes | , |
SetAssignmentInitListTest | |||
) |
Definition at line 101 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_THAT, and s.
TEST | ( | SortedVectorTypes | , |
MapAssignmentInitListTest | |||
) |
Definition at line 110 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_THAT, and m.
TEST | ( | SortedVectorTypes | , |
SimpleSetTest | |||
) |
Definition at line 121 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::begin(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::count(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::empty(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::end(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::equal_range(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::erase(), EXPECT_FALSE, EXPECT_TRUE, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::find(), i, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::lower_bound(), folly::gen::range(), s, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::swap(), and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::upper_bound().
TEST | ( | SortedVectorTypes | , |
TransparentSetTest | |||
) |
Definition at line 188 of file sorted_vector_test.cpp.
References EXPECT_EQ, EXPECT_TRUE, s, and value.
TEST | ( | SortedVectorTypes | , |
BadHints | |||
) |
Definition at line 237 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::begin(), EXPECT_EQ, i, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), s, and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size().
TEST | ( | SortedVectorTypes | , |
SimpleMapTest | |||
) |
Definition at line 252 of file sorted_vector_test.cpp.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::at(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::begin(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::count(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::end(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::equal_range(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::erase(), EXPECT_DOUBLE_EQ, EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, f, folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::find(), i, folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::lower_bound(), m, folly::gen::range(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::swap(), and folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::upper_bound().
TEST | ( | SortedVectorTypes | , |
TransparentMapTest | |||
) |
Definition at line 313 of file sorted_vector_test.cpp.
References EXPECT_EQ, EXPECT_TRUE, m, and value.
TEST | ( | SortedVectorTypes | , |
Sizes | |||
) |
TEST | ( | SortedVectorTypes | , |
InitializerLists | |||
) |
TEST | ( | SortedVectorTypes | , |
CustomCompare | |||
) |
Definition at line 417 of file sorted_vector_test.cpp.
References i, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), m, and s.
TEST | ( | SortedVectorTypes | , |
GrowthPolicy | |||
) |
Definition at line 431 of file sorted_vector_test.cpp.
References a, EXPECT_EQ, EXPECT_FALSE, i, and v.
TEST | ( | SortedVectorTest | , |
EmptyTest | |||
) |
Definition at line 469 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::end(), EXPECT_THROW, EXPECT_TRUE, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::find(), and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::lower_bound().
TEST | ( | SortedVectorTest | , |
MoveTest | |||
) |
Definition at line 480 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::end(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::end(), EXPECT_EQ, EXPECT_TRUE, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert(), m, s, and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size().
TEST | ( | SortedVectorTest | , |
ShrinkTest | |||
) |
Definition at line 498 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::capacity(), EXPECT_EQ, i, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), s, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::shrink_to_fit(), and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size().
TEST | ( | SortedVectorTypes | , |
EraseTest | |||
) |
Definition at line 512 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::erase(), EXPECT_EQ, and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert().
TEST | ( | SortedVectorTypes | , |
EraseTest2 | |||
) |
Definition at line 520 of file sorted_vector_test.cpp.
References folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::begin(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::end(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::erase(), EXPECT_EQ, EXPECT_NE, i, folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::insert(), folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::lower_bound(), m, s, and folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size().
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionSortMerge | |||
) |
Definition at line 590 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionMiddleValuesEqualDuplication | |||
) |
Definition at line 608 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionSortMergeDups | |||
) |
Definition at line 624 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetInsertionDupsOneByOne | |||
) |
Definition at line 640 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionSortNoMerge | |||
) |
Definition at line 658 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionNoSortMerge | |||
) |
Definition at line 675 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionNoSortNoMerge | |||
) |
Definition at line 691 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_EQ, EXPECT_THAT, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetBulkInsertionEmptyRange | |||
) |
Definition at line 708 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_THAT, EXPECT_TRUE, extractValues(), and s.
TEST | ( | SortedVectorTypes | , |
TestBulkInsertionUncopyableTypes | |||
) |
Definition at line 730 of file sorted_vector_test.cpp.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert(), and s.
TEST | ( | SortedVectorTypes | , |
TestBulkInsertionMovableTypes | |||
) |
Definition at line 760 of file sorted_vector_test.cpp.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert(), and s.
TEST | ( | SortedVectorTypes | , |
TestSetCreationFromVector | |||
) |
Definition at line 775 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), EXPECT_THAT, and folly::gen::move.
TEST | ( | SortedVectorTypes | , |
TestMapCreationFromVector | |||
) |
Definition at line 782 of file sorted_vector_test.cpp.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::begin(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::end(), EXPECT_EQ, and folly::gen::move.
TEST | ( | SortedVectorTypes | , |
TestBulkInsertionWithDuplicatesIntoEmptySet | |||
) |
Definition at line 798 of file sorted_vector_test.cpp.
References testing::ElementsAreArray(), and EXPECT_THAT.
TEST | ( | SortedVectorTypes | , |
TestDataPointsToFirstElement | |||
) |
Definition at line 807 of file sorted_vector_test.cpp.
References folly::test::begin(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::begin(), data, folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::data(), EXPECT_EQ, and map().