Namespaces | |
namespace | Detail |
namespace | detail |
namespace | Generators |
namespace | literals |
namespace | Matchers |
Typedefs | |
template<typename Func , typename... U> | |
using | FunctionReturnType = typename std::remove_reference< typename std::remove_cv< typename std::result_of< Func(U...)>::type >::type >::type |
using | exceptionTranslateFunction = std::string(*)() |
using | ExceptionTranslators = std::vector< std::unique_ptr< IExceptionTranslator const > > |
using | IConfigPtr = std::shared_ptr< IConfig const > |
Functions | |
unsigned int | rngSeed () |
std::ostream & | operator<< (std::ostream &os, SourceLineInfo const &info) |
template<typename T > | |
T const & | operator+ (T const &value, StreamEndStop) |
bool | isThrowSafe (TestCase const &testCase, IConfig const &config) |
bool | matchTest (TestCase const &testCase, TestSpec const &testSpec, IConfig const &config) |
std::vector< TestCase > | filterTests (std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config) |
std::vector< TestCase > const & | getAllTestCasesSorted (IConfig const &config) |
auto | operator+= (std::string &lhs, StringRef const &sr) -> std::string & |
auto | operator<< (std::ostream &os, StringRef const &sr) -> std::ostream & |
constexpr auto | operator""_sr (char const *rawChars, std::size_t size) noexcept -> StringRef |
auto | makeTestInvoker (void(*testAsFunction)()) noexcept -> ITestInvoker * |
template<typename C > | |
auto | makeTestInvoker (void(C::*testAsMethod)()) noexcept -> ITestInvoker * |
bool | isOk (ResultWas::OfType resultType) |
bool | isJustInfo (int flags) |
ResultDisposition::Flags | operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs) |
bool | shouldContinueOnFailure (int flags) |
bool | isFalseTest (int flags) |
bool | shouldSuppressFailure (int flags) |
std::ostream & | cout () |
std::ostream & | cerr () |
std::ostream & | clog () |
auto | makeStream (StringRef const &filename) -> IStream const * |
template<typename Range > | |
std::string | rangeToString (Range const &range) |
template<typename Allocator > | |
std::string | rangeToString (std::vector< bool, Allocator > const &v) |
void | formatReconstructedExpression (std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs) |
template<typename LhsT , typename RhsT > | |
auto | compareEqual (LhsT const &lhs, RhsT const &rhs) -> bool |
template<typename T > | |
auto | compareEqual (T *const &lhs, int rhs) -> bool |
template<typename T > | |
auto | compareEqual (T *const &lhs, long rhs) -> bool |
template<typename T > | |
auto | compareEqual (int lhs, T *const &rhs) -> bool |
template<typename T > | |
auto | compareEqual (long lhs, T *const &rhs) -> bool |
template<typename LhsT , typename RhsT > | |
auto | compareNotEqual (LhsT const &lhs, RhsT &&rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (T *const &lhs, int rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (T *const &lhs, long rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (int lhs, T *const &rhs) -> bool |
template<typename T > | |
auto | compareNotEqual (long lhs, T *const &rhs) -> bool |
void | handleExpression (ITransientExpression const &expr) |
template<typename T > | |
void | handleExpression (ExprLhs< T > const &expr) |
IResultCapture & | getResultCapture () |
void | handleExceptionMatchExpr (AssertionHandler &handler, std::string const &str, StringRef const &matcherString) |
auto | getCurrentNanosecondsSinceEpoch () -> uint64_t |
auto | getEstimatedClockResolution () -> uint64_t |
bool | startsWith (std::string const &s, std::string const &prefix) |
bool | startsWith (std::string const &s, char prefix) |
bool | endsWith (std::string const &s, std::string const &suffix) |
bool | endsWith (std::string const &s, char suffix) |
bool | contains (std::string const &s, std::string const &infix) |
void | toLowerInPlace (std::string &s) |
std::string | toLower (std::string const &s) |
std::string | trim (std::string const &str) |
Returns a new string without whitespace at the start/end. | |
StringRef | trim (StringRef ref) |
Returns a substring of the original ref without whitespace. Beware lifetimes! | |
std::vector< StringRef > | splitStringRef (StringRef str, char delimiter) |
bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
void | throw_exception (std::exception const &e) |
void | throw_logic_error (std::string const &msg) |
void | throw_domain_error (std::string const &msg) |
void | throw_runtime_error (std::string const &msg) |
IMutableContext & | getCurrentMutableContext () |
IContext & | getCurrentContext () |
void | cleanUpContext () |
SimplePcg32 & | rng () |
TestCase | makeTestCase (ITestInvoker *testCase, std::string const &className, NameAndTags const &nameAndTags, SourceLineInfo const &lineInfo) |
using FunctionReturnType = typename std::remove_reference<typename std::remove_cv<typename std::result_of<Func(U...)>::type>::type>::type |
using exceptionTranslateFunction = std::string(*)() |
using ExceptionTranslators = std::vector<std::unique_ptr<IExceptionTranslator const> > |
typedef std::shared_ptr< IConfig const > IConfigPtr |
unsigned int rngSeed | ( | ) |
std::ostream & operator<< | ( | std::ostream & | os, |
SourceLineInfo const & | info | ||
) |
T const & operator+ | ( | T const & | value, |
StreamEndStop | |||
) |
bool isThrowSafe | ( | TestCase const & | testCase, |
IConfig const & | config | ||
) |
bool matchTest | ( | TestCase const & | testCase, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
std::vector< TestCase > filterTests | ( | std::vector< TestCase > const & | testCases, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
std::vector< TestCase > const & getAllTestCasesSorted | ( | IConfig const & | config | ) |
auto operator+= | ( | std::string & | lhs, |
StringRef const & | sr | ||
) | -> std::string & |
auto operator<< | ( | std::ostream & | os, |
StringRef const & | sr | ||
) | -> std::ostream & |
|
constexprnoexcept |
|
noexcept |
|
noexcept |
bool isOk | ( | ResultWas::OfType | resultType | ) |
bool isJustInfo | ( | int | flags | ) |
ResultDisposition::Flags operator| | ( | ResultDisposition::Flags | lhs, |
ResultDisposition::Flags | rhs | ||
) |
bool shouldContinueOnFailure | ( | int | flags | ) |
bool isFalseTest | ( | int | flags | ) |
References ResultDisposition::FalseTest.
bool shouldSuppressFailure | ( | int | flags | ) |
std::ostream & cout | ( | ) |
std::ostream & cerr | ( | ) |
std::ostream & clog | ( | ) |
std::string rangeToString | ( | Range const & | range | ) |
std::string rangeToString | ( | std::vector< bool, Allocator > const & | v | ) |
References ReusableStringStream::str(), and Catch::Detail::stringify().
void formatReconstructedExpression | ( | std::ostream & | os, |
std::string const & | lhs, | ||
StringRef | op, | ||
std::string const & | rhs | ||
) |
auto compareEqual | ( | LhsT const & | lhs, |
RhsT const & | rhs | ||
) | -> bool |
Referenced by ExprLhs< LhsT >::operator==().
auto compareEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto compareEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
auto compareEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto compareEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
auto compareNotEqual | ( | LhsT const & | lhs, |
RhsT && | rhs | ||
) | -> bool |
Referenced by ExprLhs< LhsT >::operator!=().
auto compareNotEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto compareNotEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
auto compareNotEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto compareNotEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
void handleExpression | ( | ITransientExpression const & | expr | ) |
Referenced by handleExpression().
void handleExpression | ( | ExprLhs< T > const & | expr | ) |
References handleExpression(), and ExprLhs< LhsT >::makeUnaryExpr().
IResultCapture & getResultCapture | ( | ) |
void handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
std::string const & | str, | ||
StringRef const & | matcherString | ||
) |
auto getCurrentNanosecondsSinceEpoch | ( | ) | -> uint64_t |
References getCurrentNanosecondsSinceEpoch().
Referenced by getCurrentNanosecondsSinceEpoch().
auto getEstimatedClockResolution | ( | ) | -> uint64_t |
References getEstimatedClockResolution().
Referenced by getEstimatedClockResolution().
bool startsWith | ( | std::string const & | s, |
std::string const & | prefix | ||
) |
References startsWith().
Referenced by startsWith(), and startsWith().
bool startsWith | ( | std::string const & | s, |
char | prefix | ||
) |
References startsWith().
bool endsWith | ( | std::string const & | s, |
std::string const & | suffix | ||
) |
References endsWith().
Referenced by endsWith(), and endsWith().
bool endsWith | ( | std::string const & | s, |
char | suffix | ||
) |
References endsWith().
bool contains | ( | std::string const & | s, |
std::string const & | infix | ||
) |
References contains().
Referenced by contains().
void toLowerInPlace | ( | std::string & | s | ) |
References toLowerInPlace().
Referenced by toLowerInPlace().
std::string trim | ( | std::string const & | str | ) |
Returns a substring of the original ref without whitespace. Beware lifetimes!
References trim().
References splitStringRef().
Referenced by splitStringRef().
bool replaceInPlace | ( | std::string & | str, |
std::string const & | replaceThis, | ||
std::string const & | withThis | ||
) |
References replaceInPlace().
Referenced by replaceInPlace().
void throw_exception | ( | std::exception const & | e | ) |
void throw_logic_error | ( | std::string const & | msg | ) |
References throw_logic_error().
Referenced by throw_logic_error().
void throw_domain_error | ( | std::string const & | msg | ) |
References throw_domain_error().
Referenced by throw_domain_error().
void throw_runtime_error | ( | std::string const & | msg | ) |
References throw_runtime_error().
Referenced by throw_runtime_error().
IMutableContext & getCurrentMutableContext | ( | ) |
Referenced by getCurrentContext(), and IMutableContext::setConfig().
IContext & getCurrentContext | ( | ) |
References getCurrentContext(), and getCurrentMutableContext().
Referenced by getCurrentContext().
void cleanUpContext | ( | ) |
References cleanUpContext().
Referenced by cleanUpContext().
SimplePcg32 & rng | ( | ) |
TestCase makeTestCase | ( | ITestInvoker * | testCase, |
std::string const & | className, | ||
NameAndTags const & | nameAndTags, | ||
SourceLineInfo const & | lineInfo | ||
) |
References makeTestCase().
Referenced by makeTestCase().