proxygen
|
#include <cmath>
#include <folly/experimental/Bits.h>
#include <glog/logging.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
template<class T > | |
void | runSimpleTest8 () |
TEST (Bits, Simple8) | |
TEST (Bits, SimpleUnaligned8) | |
template<class T > | |
void | runSimpleTest64 () |
TEST (Bits, Simple64) | |
TEST (Bits, SimpleUnaligned64) | |
template<class T > | |
void | runMultiBitTest8 () |
TEST (Bits, MultiBit8) | |
TEST (Bits, MultiBitUnaligned8) | |
template<class T > | |
void | runSignedMultiBitTest8 () |
TEST (Bits, SignedMultiBit8) | |
template<class T , class R = T> | |
void | runMultiBitTest64 () |
TEST (Bits, MultiBit64) | |
TEST (Bits, MultiBitSigned64) | |
TEST (Bits, MultiBitUnaligned64) | |
TEST (Bits, Boundaries) | |
template<size_t N> | |
void | accSize (size_t &w) |
template<size_t N, typename T , bool NEG, bool aligned> | |
void | testSetLoop (size_t &w, size_t bufSize, uint8_t *buf) |
template<size_t N, typename T , bool NEG, bool aligned> | |
void | testGetLoop (size_t &r, size_t bufSize, uint8_t *buf) |
template<bool aligned> | |
void | testConcatenation () |
TEST (Bits, ConcatenationUnalignedUnsigned) | |
TEST (Bits, ConcatenationAligned) | |
int | main (int argc, char *argv[]) |
void accSize | ( | size_t & | w | ) |
Definition at line 263 of file BitsTest.cpp.
References s.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 374 of file BitsTest.cpp.
References testing::InitGoogleTest(), and RUN_ALL_TESTS().
void runMultiBitTest64 | ( | ) |
Definition at line 182 of file BitsTest.cpp.
References EXPECT_EQ, deadlock::load(), folly::Bits< T, Traits >::set(), and folly::T.
void runMultiBitTest8 | ( | ) |
Definition at line 114 of file BitsTest.cpp.
References EXPECT_EQ, deadlock::load(), folly::Bits< T, Traits >::set(), and folly::T.
void runSignedMultiBitTest8 | ( | ) |
Definition at line 150 of file BitsTest.cpp.
References EXPECT_EQ, deadlock::load(), folly::Bits< T, Traits >::set(), and folly::T.
void runSimpleTest64 | ( | ) |
Definition at line 69 of file BitsTest.cpp.
References folly::Bits< T, Traits >::clear(), EXPECT_EQ, deadlock::load(), folly::Bits< T, Traits >::set(), folly::T, and uint64_t.
void runSimpleTest8 | ( | ) |
Definition at line 28 of file BitsTest.cpp.
References folly::Bits< T, Traits >::clear(), EXPECT_EQ, deadlock::load(), folly::Bits< T, Traits >::set(), and folly::T.
TEST | ( | Bits | , |
Simple8 | |||
) |
Definition at line 60 of file BitsTest.cpp.
TEST | ( | Bits | , |
SimpleUnaligned8 | |||
) |
Definition at line 64 of file BitsTest.cpp.
TEST | ( | Bits | , |
Simple64 | |||
) |
Definition at line 105 of file BitsTest.cpp.
TEST | ( | Bits | , |
SimpleUnaligned64 | |||
) |
Definition at line 109 of file BitsTest.cpp.
TEST | ( | Bits | , |
MultiBit8 | |||
) |
Definition at line 141 of file BitsTest.cpp.
TEST | ( | Bits | , |
MultiBitUnaligned8 | |||
) |
Definition at line 145 of file BitsTest.cpp.
TEST | ( | Bits | , |
SignedMultiBit8 | |||
) |
Definition at line 177 of file BitsTest.cpp.
TEST | ( | Bits | , |
MultiBit64 | |||
) |
Definition at line 200 of file BitsTest.cpp.
TEST | ( | Bits | , |
MultiBitSigned64 | |||
) |
Definition at line 204 of file BitsTest.cpp.
TEST | ( | Bits | , |
MultiBitUnaligned64 | |||
) |
Definition at line 208 of file BitsTest.cpp.
References folly::Bits< T, Traits >::get(), folly::pushmi::operators::get, max, min, folly::gen::negate(), cpp.gmock_class::set, folly::Bits< T, Traits >::set(), start, folly::T, type, uint64_t, uint8_t, value, and folly::value().
TEST | ( | Bits | , |
Boundaries | |||
) |
Definition at line 251 of file BitsTest.cpp.
References EXPECT_EQ, int32_t, folly::size(), uint8_t, and folly::value().
TEST | ( | Bits | , |
ConcatenationUnalignedUnsigned | |||
) |
Definition at line 366 of file BitsTest.cpp.
TEST | ( | Bits | , |
ConcatenationAligned | |||
) |
Definition at line 370 of file BitsTest.cpp.
void testConcatenation | ( | ) |
Definition at line 289 of file BitsTest.cpp.
References buffer(), and uint8_t.
void testGetLoop | ( | size_t & | r, |
size_t | bufSize, | ||
uint8_t * | buf | ||
) |
Definition at line 280 of file BitsTest.cpp.
void testSetLoop | ( | size_t & | w, |
size_t | bufSize, | ||
uint8_t * | buf | ||
) |
Definition at line 270 of file BitsTest.cpp.