proxygen
FBVectorTestUtil.h File Reference
#include <boost/random/mersenne_twister.hpp>
#include <folly/Benchmark.h>
#include <folly/FBString.h>
#include <folly/Random.h>
#include <folly/portability/GTest.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::test
 
 folly::test::detail
 

Macros

#define CONCAT(A, B)   CONCAT_HELPER(A, B)
 
#define CONCAT_HELPER(A, B)   A##B
 
#define BENCHFUN(F)   CONCAT(CONCAT(BM_, F), CONCAT(_, VECTOR))
 
#define TESTFUN(F)   TEST(fbvector, CONCAT(F, VECTOR))
 

Typedefs

typedef boost::random::mt19937 folly::test::detail::RandomT
 

Functions

static RandomT folly::test::detail::rng (seed)
 
template<class Integral1 , class Integral2 >
Integral2 folly::test::detail::random (Integral1 low, Integral2 up)
 
template<class String >
void folly::test::detail::randomString (String *toFill, unsigned int maxSize=1000)
 
template<class String , class Integral >
void folly::test::detail::Num2String (String &str, Integral)
 
std::list< char > folly::test::detail::RandomList (unsigned int maxSize)
 
template<class T >
T folly::test::detail::randomObject ()
 
template<>
int folly::test::detail::randomObject< int > ()
 
template<>
std::string folly::test::detail::randomObject< std::string > ()
 
template<>
folly::fbstring folly::test::detail::randomObject< folly::fbstring > ()
 

Variables

static auto const folly::test::detail::seed = randomNumberSeed()
 

Macro Definition Documentation

#define BENCHFUN (   F)    CONCAT(CONCAT(BM_, F), CONCAT(_, VECTOR))

Definition at line 90 of file FBVectorTestUtil.h.

#define CONCAT (   A,
  B 
)    CONCAT_HELPER(A, B)

Definition at line 88 of file FBVectorTestUtil.h.

#define CONCAT_HELPER (   A,
  B 
)    A##B

Definition at line 89 of file FBVectorTestUtil.h.

#define TESTFUN (   F)    TEST(fbvector, CONCAT(F, VECTOR))

Definition at line 91 of file FBVectorTestUtil.h.