proxygen
|
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <deque>
#include <functional>
#include <map>
#include <set>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include <folly/container/Iterator.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (EmplaceIterator, EmplacerTest) | |
TEST (EmplaceIterator, FrontEmplacerTest) | |
TEST (EmplaceIterator, BackEmplacerTest) | |
TEST (EmplaceIterator, HintEmplacerTest) | |
TEST (EmplaceIterator, Copy) | |
TEST (EmplaceIterator, Transform) | |
TEST (EmplaceIterator, EmplaceArgs) | |
TEST (EmplaceIterator, ImplicitUnpack) | |
TEST | ( | EmplaceIterator | , |
EmplacerTest | |||
) |
Basic tests for folly::emplace_iterator.
Definition at line 153 of file IteratorTest.cpp.
References copy_and_move_test(), folly::emplacer(), and EXPECT_EQ.
TEST | ( | EmplaceIterator | , |
FrontEmplacerTest | |||
) |
Basic tests for folly::front_emplace_iterator.
Definition at line 178 of file IteratorTest.cpp.
References copy_and_move_test(), EXPECT_EQ, and folly::front_emplacer().
TEST | ( | EmplaceIterator | , |
BackEmplacerTest | |||
) |
Basic tests for folly::back_emplace_iterator.
Definition at line 203 of file IteratorTest.cpp.
References folly::back_emplacer(), copy_and_move_test(), and EXPECT_EQ.
TEST | ( | EmplaceIterator | , |
HintEmplacerTest | |||
) |
Basic tests for folly::hint_emplace_iterator.
Definition at line 228 of file IteratorTest.cpp.
References ASSERT_EQ, diff(), EXPECT_EQ, folly::hint_emplacer(), i, m, folly::make_emplace_args(), folly::operator<(), and operator==().
TEST | ( | EmplaceIterator | , |
Copy | |||
) |
Test std::copy() with explicit conversion. This would not compile with a std::back_insert_iterator, because the constructor of Object that takes a single int is explicit.
Definition at line 285 of file IteratorTest.cpp.
References folly::back_emplacer(), folly::copy(), and EXPECT_EQ.
TEST | ( | EmplaceIterator | , |
Transform | |||
) |
Test std::transform() with multi-argument constructors. This would require a temporary Object with std::back_insert_iterator.
Definition at line 305 of file IteratorTest.cpp.
References folly::back_emplacer(), EXPECT_EQ, i, folly::make_emplace_args(), and folly::pushmi::operators::transform.
TEST | ( | EmplaceIterator | , |
EmplaceArgs | |||
) |
Test multi-argument store and forward.
Definition at line 326 of file IteratorTest.cpp.
References EXPECT_EQ, folly::make_emplace_args(), folly::gen::move, folly::rref(), and value.
TEST | ( | EmplaceIterator | , |
ImplicitUnpack | |||
) |
Test implicit unpacking.
Definition at line 505 of file IteratorTest.cpp.
References folly::back_emplacer(), folly::emplacer(), EXPECT_EQ, folly::front_emplacer(), std::tr1::make_tuple(), and test().