|
proxygen
|
#include <folly/container/F14Map.h>#include <algorithm>#include <unordered_map>#include <folly/Conv.h>#include <folly/FBString.h>#include <folly/container/test/F14TestUtil.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Functions | |
| template<template< typename, typename, typename, typename, typename > class TMap> | |
| void | testCustomSwap () |
| TEST (F14Map, customSwap) | |
| TEST (F14Map, getAllocatedMemorySize) | |
| template<typename M > | |
| void | runVisitContiguousRangesTest (int n) |
| template<typename M > | |
| void | runVisitContiguousRangesTest () |
| TEST (F14ValueMap, visitContiguousRanges) | |
| TEST (F14NodeMap, visitContiguousRanges) | |
| TEST (F14VectorMap, visitContiguousRanges) | |
| TEST (F14FastMap, visitContiguousRanges) | |
| void runVisitContiguousRangesTest | ( | int | n | ) |
Definition at line 132 of file F14MapTest.cpp.
References ASSERT_TRUE, b, EXPECT_FALSE, EXPECT_TRUE, i, M, and map().
| void runVisitContiguousRangesTest | ( | ) |
Definition at line 161 of file F14MapTest.cpp.
| TEST | ( | F14Map | , |
| customSwap | |||
| ) |
Definition at line 46 of file F14MapTest.cpp.
References count, EXPECT_EQ, EXPECT_GE, EXPECT_GT, folly::f14::detail::getF14IntrinsicsMode(), i, m, folly::f14::detail::None, folly::f14::resetTracking(), folly::size(), folly::f14::testAllocatedBlockCount, and folly::f14::testAllocatedMemorySize.
| TEST | ( | F14Map | , |
| getAllocatedMemorySize | |||
| ) |
Definition at line 121 of file F14MapTest.cpp.
| TEST | ( | F14ValueMap | , |
| visitContiguousRanges | |||
| ) |
Definition at line 167 of file F14MapTest.cpp.
| TEST | ( | F14NodeMap | , |
| visitContiguousRanges | |||
| ) |
Definition at line 171 of file F14MapTest.cpp.
| TEST | ( | F14VectorMap | , |
| visitContiguousRanges | |||
| ) |
Definition at line 175 of file F14MapTest.cpp.
| TEST | ( | F14FastMap | , |
| visitContiguousRanges | |||
| ) |
Definition at line 179 of file F14MapTest.cpp.
References folly::as_const(), b, folly::F14TableStats::compute(), dist, EXPECT_EQ, EXPECT_FALSE, EXPECT_GE, EXPECT_NE, EXPECT_THROW, EXPECT_TRUE, folly::gen::first, bm::free(), h, i, folly::INFO, k, folly::f14::limitTestAllocations(), m, M, map(), max, min, folly::gen::move, name, populate(), folly::f14::resetTracking(), s, simple, string, folly::f14::swap(), folly::pushmi::detail::t, folly::T, folly::TEST(), folly::f14::testAllocatedMemorySize, uint64_t, folly::f14::unlimitTestAllocations(), v, val, verify(), x, and folly::fibers::yield().
| void testCustomSwap | ( | ) |
Definition at line 29 of file F14MapTest.cpp.
References dist, EXPECT_EQ, folly::f14::resetTracking(), and folly::f14::swap().