proxygen
BitVectorCodingTest Class Reference
Inheritance diagram for BitVectorCodingTest:
testing::Test

Public Member Functions

void doTestEmpty ()
 
template<size_t kSkipQuantum, size_t kForwardQuantum>
void doTestAll ()
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 30 of file BitVectorCodingTest.cpp.

Member Function Documentation

template<size_t kSkipQuantum, size_t kForwardQuantum>
void BitVectorCodingTest::doTestAll ( )
inline

Definition at line 39 of file BitVectorCodingTest.cpp.

References folly::compression::generateRandomList(), and folly::compression::generateSeqList().

39  {
41  Encoder;
42  typedef BitVectorReader<Encoder> Reader;
43  testAll<Reader, Encoder>(generateRandomList(100 * 1000, 10 * 1000 * 1000));
44  testAll<Reader, Encoder>(generateSeqList(1, 100000, 100));
45  }
BitVectorEncoder< uint32_t, uint32_t, 128, 128 > Encoder
std::vector< uint32_t > generateRandomList(size_t n, uint32_t maxId, URNG &&g)
std::vector< uint32_t > generateSeqList(uint32_t minId, uint32_t maxId, uint32_t step=1)
void BitVectorCodingTest::doTestEmpty ( )
inline

Definition at line 32 of file BitVectorCodingTest.cpp.

32  {
35  testEmpty<Reader, Encoder>();
36  }
BitVectorEncoder< uint32_t, uint32_t, 128, 128 > Encoder

The documentation for this class was generated from the following file: