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

Public Member Functions

void doTestEmpty ()
 
template<size_t kSkipQuantum, size_t kForwardQuantum, class SizeType >
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 85 of file EliasFanoCodingTest.cpp.

Member Function Documentation

template<size_t kSkipQuantum, size_t kForwardQuantum, class SizeType >
void EliasFanoCodingTest::doTestAll ( )
inline

Definition at line 94 of file EliasFanoCodingTest.cpp.

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

94  {
95  typedef EliasFanoEncoderV2<
96  uint32_t,
97  uint32_t,
98  kSkipQuantum,
99  kForwardQuantum>
100  Encoder;
101  using Reader =
103  testAll<Reader, Encoder>({0});
104  testAll<Reader, Encoder>(generateRandomList(100 * 1000, 10 * 1000 * 1000));
105  testAll<Reader, Encoder>(generateSeqList(1, 100000, 100));
106  }
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 EliasFanoCodingTest::doTestEmpty ( )
inline

Definition at line 87 of file EliasFanoCodingTest.cpp.

87  {
89  typedef EliasFanoReader<Encoder> Reader;
90  testEmpty<Reader, Encoder>();
91  }
BitVectorEncoder< uint32_t, uint32_t, 128, 128 > Encoder

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