proxygen
CodingTestUtils.h File Reference
#include <algorithm>
#include <fstream>
#include <limits>
#include <random>
#include <string>
#include <unordered_set>
#include <vector>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/Likely.h>
#include <folly/Optional.h>
#include <folly/experimental/Instructions.h>
#include <folly/portability/GTest.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::compression
 

Functions

template<class URNG >
std::vector< uint32_tfolly::compression::generateRandomList (size_t n, uint32_t maxId, URNG &&g)
 
std::vector< uint32_tfolly::compression::generateRandomList (size_t n, uint32_t maxId)
 
std::vector< uint32_tfolly::compression::generateSeqList (uint32_t minId, uint32_t maxId, uint32_t step=1)
 
std::vector< uint32_tfolly::compression::loadList (const std::string &filename)
 
template<class... Args>
void folly::compression::maybeTestPreviousValue (Args &&...)
 
template<class Vector , class Reader , class Index >
auto folly::compression::maybeTestPreviousValue (const Vector &data, Reader &reader, Index i) -> decltype(reader.previousValue(), void())
 
template<class... Args>
void folly::compression::maybeTestPrevious (Args &&...)
 
template<class Vector , class Reader , class Index >
auto folly::compression::maybeTestPrevious (const Vector &data, Reader &reader, Index i) -> decltype(reader.previous(), void())
 
template<class Reader , class List >
void folly::compression::testNext (const std::vector< uint32_t > &data, const List &list)
 
template<class Reader , class List >
void folly::compression::testSkip (const std::vector< uint32_t > &data, const List &list, size_t skipStep)
 
template<class Reader , class List >
void folly::compression::testSkip (const std::vector< uint32_t > &data, const List &list)
 
template<class Reader , class List >
void folly::compression::testSkipTo (const std::vector< uint32_t > &data, const List &list, size_t skipToStep)
 
template<class Reader , class List >
void folly::compression::testSkipTo (const std::vector< uint32_t > &data, const List &list)
 
template<class Reader , class List >
void folly::compression::testJump (const std::vector< uint32_t > &data, const List &list)
 
template<class Reader , class List >
void folly::compression::testJumpTo (const std::vector< uint32_t > &data, const List &list)
 
template<class Reader , class Encoder >
void folly::compression::testEmpty ()
 
template<class Reader , class Encoder >
void folly::compression::testAll (const std::vector< uint32_t > &data)
 
template<class Reader , class List >
void folly::compression::bmNext (const List &list, const std::vector< uint32_t > &data, size_t iters)
 
template<class Reader , class List >
void folly::compression::bmSkip (const List &list, const std::vector< uint32_t > &, size_t logAvgSkip, size_t iters)
 
template<class Reader , class List >
void folly::compression::bmSkipTo (const List &list, const std::vector< uint32_t > &data, size_t logAvgSkip, size_t iters)
 
template<class Reader , class List >
void folly::compression::bmJump (const List &list, const std::vector< uint32_t > &data, const std::vector< size_t > &order, size_t iters)
 
template<class Reader , class List >
void folly::compression::bmJumpTo (const List &list, const std::vector< uint32_t > &data, const std::vector< size_t > &order, size_t iters)
 
folly::Optional< instructions::Type > folly::compression::instructionsOverride ()
 
template<class F >
auto folly::compression::dispatchInstructions (F &&f) -> decltype(f(std::declval< instructions::Default >()))