proxygen
|
#include <folly/FBVector.h>
#include <list>
#include <map>
#include <memory>
#include <boost/random.hpp>
#include <folly/FBString.h>
#include <folly/Random.h>
#include <folly/Traits.h>
#include <folly/container/Foreach.h>
#include <folly/portability/GTest.h>
#include <folly/test/FBVectorTestUtil.h>
#include <folly/test/FBVectorTests.cpp.h>
Go to the source code of this file.
Macros | |
#define | VECTOR IntFBVector |
#define | VECTOR FBStringFBVector |
Typedefs | |
using | IntFBVector = fbvector< int > |
using | FBStringFBVector = fbvector< fbstring > |
Functions | |
TEST (fbvector, clause_23_3_6_1_3_ambiguity) | |
TEST (fbvector, clause_23_3_6_1_11_ambiguity) | |
TEST (fbvector, clause_23_3_6_2_6) | |
TEST (fbvector, clause_23_3_6_4_ambiguity) | |
TEST (fbvector, composition) | |
TEST (fbvector, works_with_std_string) | |
TEST (fbvector, works_with_user_defined_type) | |
TEST (fbvector, move_construction) | |
TEST (fbvector, emplace) | |
TEST (fbvector, initializer_lists) | |
TEST (fbvector, unique_ptr) | |
TEST (FBVector, task858056) | |
TEST (FBVector, move_iterator) | |
TEST (FBVector, reserve_consistency) | |
TEST (FBVector, vector_of_maps) | |
TEST (FBVector, shrink_to_fit_after_clear) | |
TEST (FBVector, zero_len) | |
#define VECTOR IntFBVector |
Definition at line 45 of file FBVectorTest.cpp.
#define VECTOR FBStringFBVector |
Definition at line 45 of file FBVectorTest.cpp.
using FBStringFBVector = fbvector<fbstring> |
Definition at line 40 of file FBVectorTest.cpp.
using IntFBVector = fbvector<int> |
Definition at line 39 of file FBVectorTest.cpp.
TEST | ( | fbvector | , |
clause_23_3_6_1_3_ambiguity | |||
) |
Definition at line 49 of file FBVectorTest.cpp.
References EXPECT_EQ, FOR_EACH, i, folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | fbvector | , |
clause_23_3_6_1_11_ambiguity | |||
) |
Definition at line 55 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::assign(), EXPECT_EQ, FOR_EACH, i, folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | fbvector | , |
clause_23_3_6_2_6 | |||
) |
Definition at line 62 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::assign(), random(), folly::test::detail::randomObject< int >(), folly::fbvector< T, Allocator >::reserve(), folly::fbvector< T, Allocator >::shrink_to_fit(), and v.
TEST | ( | fbvector | , |
clause_23_3_6_4_ambiguity | |||
) |
Definition at line 73 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::end(), EXPECT_EQ, i, folly::fbvector< T, Allocator >::insert(), folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | fbvector | , |
composition | |||
) |
Definition at line 83 of file FBVectorTest.cpp.
TEST | ( | fbvector | , |
works_with_std_string | |||
) |
Definition at line 87 of file FBVectorTest.cpp.
References EXPECT_EQ, FOLLY_ASSUME_FBVECTOR_COMPATIBLE(), folly::fbvector< T, Allocator >::push_back(), folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | fbvector | , |
works_with_user_defined_type | |||
) |
Definition at line 101 of file FBVectorTest.cpp.
References EXPECT_EQ, folly::fbvector< T, Allocator >::push_back(), folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | fbvector | , |
move_construction | |||
) |
Definition at line 107 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::assign(), EXPECT_EQ, folly::fbvector< T, Allocator >::front(), folly::gen::move, and folly::fbvector< T, Allocator >::size().
TEST | ( | fbvector | , |
emplace | |||
) |
Definition at line 125 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::back(), folly::fbvector< T, Allocator >::emplace_back(), EXPECT_EQ, folly::fbvector< T, Allocator >::front(), s, and folly::fbvector< T, Allocator >::size().
TEST | ( | fbvector | , |
initializer_lists | |||
) |
Definition at line 133 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::begin(), EXPECT_EQ, folly::fbvector< T, Allocator >::insert(), and folly::fbvector< T, Allocator >::size().
TEST | ( | fbvector | , |
unique_ptr | |||
) |
Definition at line 157 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::back(), EXPECT_EQ, EXPECT_FALSE, folly::gen::move, folly::fbvector< T, Allocator >::push_back(), and v.
TEST | ( | FBVector | , |
task858056 | |||
) |
Definition at line 171 of file FBVectorTest.cpp.
References folly::gen::cycle, EXPECT_EQ, FOR_EACH_R, message, and folly::fbvector< T, Allocator >::push_back().
TEST | ( | FBVector | , |
move_iterator | |||
) |
Definition at line 185 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::assign(), folly::fbvector< T, Allocator >::end(), EXPECT_EQ, and folly::fbvector< T, Allocator >::insert().
TEST | ( | FBVector | , |
reserve_consistency | |||
) |
Definition at line 208 of file FBVectorTest.cpp.
References a, b, c, EXPECT_EQ, i, int64_t, folly::fbvector< T, Allocator >::reserve(), folly::fbvector< T, Allocator >::shrink_to_fit(), and folly::fbvector< T, Allocator >::size().
TEST | ( | FBVector | , |
vector_of_maps | |||
) |
Definition at line 221 of file FBVectorTest.cpp.
References EXPECT_EQ, folly::fbvector< T, Allocator >::push_back(), folly::size(), folly::fbvector< T, Allocator >::size(), and v.
TEST | ( | FBVector | , |
shrink_to_fit_after_clear | |||
) |
Definition at line 238 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::capacity(), folly::fbvector< T, Allocator >::clear(), EXPECT_EQ, folly::fbvector< T, Allocator >::push_back(), folly::fbvector< T, Allocator >::shrink_to_fit(), and folly::fbvector< T, Allocator >::size().
TEST | ( | FBVector | , |
zero_len | |||
) |
Definition at line 248 of file FBVectorTest.cpp.
References folly::fbvector< T, Allocator >::begin(), folly::fbvector< T, Allocator >::end(), and folly::gen::move.