Namespaces | |
Detail | |
detail | |
Generators | |
literals | |
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 | IReporterFactoryPtr = std::shared_ptr< IReporterFactory > |
using | exceptionTranslateFunction = std::string(*)() |
using | ExceptionTranslators = std::vector< std::unique_ptr< IExceptionTranslator const > > |
using | StringMatcher = Matchers::Impl::MatcherBase< std::string > |
using | IConfigPtr = std::shared_ptr< IConfig const > |
Enumerations | |
enum class | Verbosity { Quiet = 0 , Normal , High } |
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 |
IRegistryHub const & | getRegistryHub () |
IMutableRegistryHub & | getMutableRegistryHub () |
void | cleanUp () |
std::string | translateActiveException () |
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. More... | |
StringRef | trim (StringRef ref) |
Returns a substring of the original ref without whitespace. Beware lifetimes! More... | |
std::vector< StringRef > | splitStringRef (StringRef str, char delimiter) |
bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
void | handleExceptionMatchExpr (AssertionHandler &handler, StringMatcher const &matcher, StringRef const &matcherString) |
template<typename ArgT , typename MatcherT > | |
auto | makeMatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT > |
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 IReporterFactoryPtr = std::shared_ptr<IReporterFactory> |
using exceptionTranslateFunction = std::string(*)() |
using ExceptionTranslators = std::vector<std::unique_ptr<IExceptionTranslator const> > |
using StringMatcher = Matchers::Impl::MatcherBase<std::string> |
typedef std::shared_ptr< IConfig const > IConfigPtr |
|
strong |
unsigned int Catch::rngSeed | ( | ) |
std::ostream& Catch::operator<< | ( | std::ostream & | os, |
SourceLineInfo const & | info | ||
) |
T const& Catch::operator+ | ( | T const & | value, |
StreamEndStop | |||
) |
References Catch::Generators::value().
bool Catch::matchTest | ( | TestCase const & | testCase, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
std::vector<TestCase> Catch::filterTests | ( | std::vector< TestCase > const & | testCases, |
TestSpec const & | testSpec, | ||
IConfig const & | config | ||
) |
auto Catch::operator+= | ( | std::string & | lhs, |
StringRef const & | sr | ||
) | -> std::string & |
auto Catch::operator<< | ( | std::ostream & | os, |
StringRef const & | sr | ||
) | -> std::ostream & |
|
constexprnoexcept |
|
noexcept |
|
noexcept |
bool Catch::isOk | ( | ResultWas::OfType | resultType | ) |
bool Catch::isJustInfo | ( | int | flags | ) |
ResultDisposition::Flags Catch::operator| | ( | ResultDisposition::Flags | lhs, |
ResultDisposition::Flags | rhs | ||
) |
bool Catch::shouldContinueOnFailure | ( | int | flags | ) |
bool Catch::isFalseTest | ( | int | flags | ) |
References ResultDisposition::FalseTest.
bool Catch::shouldSuppressFailure | ( | int | flags | ) |
std::ostream& Catch::cout | ( | ) |
Referenced by FolderADAA< pts >::evaluate().
std::ostream& Catch::cerr | ( | ) |
std::ostream& Catch::clog | ( | ) |
std::string Catch::rangeToString | ( | Range const & | range | ) |
std::string Catch::rangeToString | ( | std::vector< bool, Allocator > const & | v | ) |
References ReusableStringStream::str(), and Catch::Detail::stringify().
Referenced by rangeToString().
void Catch::formatReconstructedExpression | ( | std::ostream & | os, |
std::string const & | lhs, | ||
StringRef | op, | ||
std::string const & | rhs | ||
) |
auto Catch::compareEqual | ( | LhsT const & | lhs, |
RhsT const & | rhs | ||
) | -> bool |
Referenced by ExprLhs< LhsT >::operator==().
auto Catch::compareEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | LhsT const & | lhs, |
RhsT && | rhs | ||
) | -> bool |
Referenced by ExprLhs< LhsT >::operator!=().
auto Catch::compareNotEqual | ( | T *const & | lhs, |
int | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | T *const & | lhs, |
long | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | int | lhs, |
T *const & | rhs | ||
) | -> bool |
auto Catch::compareNotEqual | ( | long | lhs, |
T *const & | rhs | ||
) | -> bool |
void Catch::handleExpression | ( | ITransientExpression const & | expr | ) |
Referenced by handleExpression().
void Catch::handleExpression | ( | ExprLhs< T > const & | expr | ) |
References handleExpression(), and ExprLhs< LhsT >::makeUnaryExpr().
IResultCapture& Catch::getResultCapture | ( | ) |
void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
std::string const & | str, | ||
StringRef const & | matcherString | ||
) |
auto Catch::getCurrentNanosecondsSinceEpoch | ( | ) | -> uint64_t |
auto Catch::getEstimatedClockResolution | ( | ) | -> uint64_t |
IRegistryHub const& Catch::getRegistryHub | ( | ) |
IMutableRegistryHub& Catch::getMutableRegistryHub | ( | ) |
Referenced by ExceptionTranslatorRegistrar::ExceptionTranslatorRegistrar().
void Catch::cleanUp | ( | ) |
std::string Catch::translateActiveException | ( | ) |
bool Catch::startsWith | ( | std::string const & | s, |
std::string const & | prefix | ||
) |
bool Catch::startsWith | ( | std::string const & | s, |
char | prefix | ||
) |
bool Catch::endsWith | ( | std::string const & | s, |
std::string const & | suffix | ||
) |
bool Catch::endsWith | ( | std::string const & | s, |
char | suffix | ||
) |
bool Catch::contains | ( | std::string const & | s, |
std::string const & | infix | ||
) |
void Catch::toLowerInPlace | ( | std::string & | s | ) |
std::string Catch::toLower | ( | std::string const & | s | ) |
std::string Catch::trim | ( | std::string const & | str | ) |
Returns a new string without whitespace at the start/end.
Returns a substring of the original ref without whitespace. Beware lifetimes!
bool Catch::replaceInPlace | ( | std::string & | str, |
std::string const & | replaceThis, | ||
std::string const & | withThis | ||
) |
void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
StringMatcher const & | matcher, | ||
StringRef const & | matcherString | ||
) |
auto Catch::makeMatchExpr | ( | ArgT const & | arg, |
MatcherT const & | matcher, | ||
StringRef const & | matcherString | ||
) | -> MatchExpr<ArgT, MatcherT> |
void Catch::throw_exception | ( | std::exception const & | e | ) |
void Catch::throw_logic_error | ( | std::string const & | msg | ) |
void Catch::throw_domain_error | ( | std::string const & | msg | ) |
void Catch::throw_runtime_error | ( | std::string const & | msg | ) |
IMutableContext& Catch::getCurrentMutableContext | ( | ) |
Referenced by getCurrentContext().
IContext& Catch::getCurrentContext | ( | ) |
References getCurrentMutableContext().
void Catch::cleanUpContext | ( | ) |
SimplePcg32& Catch::rng | ( | ) |
TestCase Catch::makeTestCase | ( | ITestInvoker * | testCase, |
std::string const & | className, | ||
NameAndTags const & | nameAndTags, | ||
SourceLineInfo const & | lineInfo | ||
) |