proxygen
|
Classes | |
class | CheckResult |
struct | SavedState |
Typedefs | |
typedef boost::random::mt19937 | RandomT |
Functions | |
SavedState | disableInvalidParameters () |
void | enableInvalidParameters (SavedState) |
bool | hasPCREPatternMatch (StringPiece pattern, StringPiece target) |
bool | hasNoPCREPatternMatch (StringPiece pattern, StringPiece target) |
static RandomT | rng (seed) |
template<class Integral1 , class Integral2 > | |
Integral2 | random (Integral1 low, Integral2 up) |
template<class String > | |
void | randomString (String *toFill, unsigned int maxSize=1000) |
template<class String , class Integral > | |
void | Num2String (String &str, Integral) |
std::list< char > | RandomList (unsigned int maxSize) |
template<class T > | |
T | randomObject () |
template<> | |
int | randomObject< int > () |
template<> | |
std::string | randomObject< std::string > () |
template<> | |
folly::fbstring | randomObject< folly::fbstring > () |
template<typename Fn > | |
CheckResult | checkThrowErrno (Fn &&fn, int errnoValue, const char *statementStr) |
template<typename ExType , typename Fn > | |
CheckResult | checkThrowRegex (Fn &&fn, const char *pattern, const char *statementStr, const char *excTypeStr) |
Variables | |
static auto const | seed = randomNumberSeed() |
typedef boost::random::mt19937 folly::test::detail::RandomT |
Definition at line 32 of file FBVectorTestUtil.h.
CheckResult folly::test::detail::checkThrowErrno | ( | Fn && | fn, |
int | errnoValue, | ||
const char * | statementStr | ||
) |
Helper function for implementing EXPECT_THROW
Definition at line 181 of file TestUtils.h.
References folly::test::detail::CheckResult::CheckResult(), errnoValue, and folly::exceptionStr().
CheckResult folly::test::detail::checkThrowRegex | ( | Fn && | fn, |
const char * | pattern, | ||
const char * | statementStr, | ||
const char * | excTypeStr | ||
) |
Helper function for implementing EXPECT_THROW_RE
Definition at line 227 of file TestUtils.h.
References folly::test::detail::CheckResult::CheckResult(), folly::exceptionStr(), regex, and value.
SavedState folly::test::detail::disableInvalidParameters | ( | ) |
Definition at line 146 of file TestUtil.cpp.
References enableInvalidParameters(), folly::test::detail::SavedState::previousCrtReportMode, and folly::test::detail::SavedState::previousThreadLocalHandler.
Referenced by folly::test::msvcSuppressAbortOnInvalidParams().
void folly::test::detail::enableInvalidParameters | ( | SavedState | ) |
Definition at line 169 of file TestUtil.cpp.
Referenced by disableInvalidParameters(), and folly::test::msvcSuppressAbortOnInvalidParams().
bool folly::test::detail::hasNoPCREPatternMatch | ( | StringPiece | pattern, |
StringPiece | target | ||
) |
Definition at line 179 of file TestUtil.cpp.
References hasPCREPatternMatch().
bool folly::test::detail::hasPCREPatternMatch | ( | StringPiece | pattern, |
StringPiece | target | ||
) |
Definition at line 172 of file TestUtil.cpp.
References folly::Range< Iter >::begin(), folly::Range< Iter >::end(), and regex.
Referenced by hasNoPCREPatternMatch().
void folly::test::detail::Num2String | ( | String & | str, |
Integral | |||
) |
Definition at line 51 of file FBVectorTestUtil.h.
Integral2 folly::test::detail::random | ( | Integral1 | low, |
Integral2 | up | ||
) |
Definition at line 36 of file FBVectorTestUtil.h.
References folly::range(), and rng().
Referenced by RandomList(), randomObject< int >(), and randomString().
std::list<char> folly::test::detail::RandomList | ( | unsigned int | maxSize | ) |
Definition at line 57 of file FBVectorTestUtil.h.
References i, random(), randomObject(), and folly::T.
T folly::test::detail::randomObject | ( | ) |
Referenced by RandomList().
folly::fbstring folly::test::detail::randomObject< folly::fbstring > | ( | ) |
int folly::test::detail::randomObject< int > | ( | ) |
std::string folly::test::detail::randomObject< std::string > | ( | ) |
void folly::test::detail::randomString | ( | String * | toFill, |
unsigned int | maxSize = 1000 |
||
) |
Definition at line 42 of file FBVectorTestUtil.h.
Referenced by randomObject< folly::fbstring >(), and randomObject< std::string >().
|
static |
Definition at line 31 of file FBVectorTestUtil.h.