FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
catch.hpp File Reference

Data Structures

struct  Catch_global_namespace_dummy
 
struct  Catch::CaseSensitive
 
class  Catch::NonCopyable
 
struct  Catch::SourceLineInfo
 
struct  Catch::StreamEndStop
 
struct  Catch::RegistrarForTagAliases
 
struct  Catch::ITestInvoker
 
struct  Catch::ITestCaseRegistry
 
class  Catch::StringRef
 A non-owning string class (similar to the forthcoming std::string_view) Note that, because a StringRef may be a substring of another string, it may not be null terminated. c_str() must return a null terminated string, however, and so the StringRef will internally take ownership (taking a copy), if necessary. In theory this ownership is not externally visible - but it does mean (substring) StringRefs should not be shared between threads. More...
 
struct  Catch::is_unique<>
 
struct  Catch::is_unique< T0, T1, Rest...>
 
struct  Catch::TypeList<>
 
struct  Catch::append<>
 
struct  Catch::append< L1< E1...>, L2< E2...> >
 
struct  Catch::append< L1< E1...>, L2< E2...>, Rest...>
 
struct  Catch::rewrap< class, >
 
struct  Catch::rewrap< Container, List< elems...> >
 
struct  Catch::rewrap< Container, List< Elems...>, Elements...>
 
struct  Catch::combine< Containers >
 
struct  Catch::combine< Containers >::with_types< Types >
 
struct  Catch::combine< Containers >::with_types< Types >::into< Final >
 
struct  Catch::always_false< T >
 
class  Catch::TestInvokerAsMethod< C >
 
struct  Catch::NameAndTags
 
struct  Catch::AutoReg
 
struct  Catch::ResultWas
 
struct  Catch::ResultDisposition
 
struct  Catch::AssertionInfo
 
struct  Catch::IStream
 
class  Catch::ReusableStringStream
 
class  Catch::Detail::IsStreamInsertable< T >
 
struct  Catch::StringMaker< T, typename >
 
struct  Catch::StringMaker< std::string >
 
struct  Catch::StringMaker< char const * >
 
struct  Catch::StringMaker< char * >
 
struct  Catch::StringMaker< std::wstring >
 
struct  Catch::StringMaker< wchar_t const * >
 
struct  Catch::StringMaker< wchar_t * >
 
struct  Catch::StringMaker< char[SZ]>
 
struct  Catch::StringMaker< signed char[SZ]>
 
struct  Catch::StringMaker< unsigned char[SZ]>
 
struct  Catch::StringMaker< int >
 
struct  Catch::StringMaker< long >
 
struct  Catch::StringMaker< long long >
 
struct  Catch::StringMaker< unsigned int >
 
struct  Catch::StringMaker< unsigned long >
 
struct  Catch::StringMaker< unsigned long long >
 
struct  Catch::StringMaker< bool >
 
struct  Catch::StringMaker< char >
 
struct  Catch::StringMaker< signed char >
 
struct  Catch::StringMaker< unsigned char >
 
struct  Catch::StringMaker< std::nullptr_t >
 
struct  Catch::StringMaker< float >
 
struct  Catch::StringMaker< double >
 
struct  Catch::StringMaker< T * >
 
struct  Catch::StringMaker< R C::* >
 
struct  Catch::not_this_one
 
struct  Catch::is_range< T >
 
struct  Catch::StringMaker< R, typename std::enable_if< is_range< R >::value &&!::Catch::Detail::IsStreamInsertable< R >::value >::type >
 
struct  Catch::StringMaker< T[SZ]>
 
struct  Catch::ITransientExpression
 
class  Catch::BinaryExpr< LhsT, RhsT >
 
class  Catch::UnaryExpr< LhsT >
 
class  Catch::ExprLhs< LhsT >
 
struct  Catch::Decomposer
 
struct  Catch::IResultCapture
 
struct  Catch::TestFailureException
 
class  Catch::LazyExpression
 
struct  Catch::AssertionReaction
 
class  Catch::AssertionHandler
 
struct  Catch::MessageInfo
 
struct  Catch::MessageStream
 
struct  Catch::MessageBuilder
 
class  Catch::ScopedMessage
 
class  Catch::Capturer
 
struct  Catch::Counts
 
struct  Catch::Totals
 
struct  Catch::SectionInfo
 
struct  Catch::SectionEndInfo
 
class  Catch::Timer
 
class  Catch::Section
 
class  Catch::BenchmarkLooper
 
struct  Catch::IRegistryHub
 
struct  Catch::IMutableRegistryHub
 
struct  Catch::IExceptionTranslator
 
struct  Catch::IExceptionTranslatorRegistry
 
class  Catch::ExceptionTranslatorRegistrar
 
class  Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >
 
class  Catch::Detail::Approx
 
struct  Catch::StringMaker< Catch::Detail::Approx >
 
struct  Catch::pluralise
 
struct  Catch::Matchers::Impl::MatchAllOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchAnyOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchNotOf< ArgT >
 
class  Catch::Matchers::Impl::MatcherUntypedBase
 
struct  Catch::Matchers::Impl::MatcherMethod< ObjectT >
 
struct  Catch::Matchers::Impl::MatcherBase< T >
 
struct  Catch::Matchers::Impl::MatchAllOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchAnyOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchNotOf< ArgT >
 
struct  Catch::Matchers::Floating::WithinAbsMatcher
 
struct  Catch::Matchers::Floating::WithinUlpsMatcher
 
class  Catch::Matchers::Generic::PredicateMatcher< T >
 
struct  Catch::Matchers::StdString::CasedString
 
struct  Catch::Matchers::StdString::StringMatcherBase
 
struct  Catch::Matchers::StdString::EqualsMatcher
 
struct  Catch::Matchers::StdString::ContainsMatcher
 
struct  Catch::Matchers::StdString::StartsWithMatcher
 
struct  Catch::Matchers::StdString::EndsWithMatcher
 
struct  Catch::Matchers::StdString::RegexMatcher
 
struct  Catch::Matchers::Vector::ContainsElementMatcher< T >
 
struct  Catch::Matchers::Vector::ContainsMatcher< T >
 
struct  Catch::Matchers::Vector::EqualsMatcher< T >
 
struct  Catch::Matchers::Vector::UnorderedEqualsMatcher< T >
 
class  Catch::MatchExpr< ArgT, MatcherT >
 
class  Catch::Generators::GeneratorUntypedBase
 
struct  Catch::IGeneratorTracker
 
class  Catch::GeneratorException
 
struct  Catch::Generators::IGenerator< T >
 
class  Catch::Generators::SingleValueGenerator< T >
 
class  Catch::Generators::FixedValuesGenerator< T >
 
class  Catch::Generators::GeneratorWrapper< T >
 
class  Catch::Generators::Generators< T >
 
struct  Catch::Generators::as< T >
 
class  Catch::Generators::TakeGenerator< T >
 
class  Catch::Generators::FilterGenerator< T, Predicate >
 
class  Catch::Generators::RepeatGenerator< T >
 
class  Catch::Generators::MapGenerator< T, U, Func >
 
class  Catch::Generators::ChunkGenerator< T >
 
struct  Catch::IContext
 
struct  Catch::IMutableContext
 
struct  Catch::WarnAbout
 
struct  Catch::ShowDurations
 
struct  Catch::RunTests
 
struct  Catch::UseColour
 
struct  Catch::WaitForKeypress
 
struct  Catch::IConfig
 
class  Catch::Generators::RandomFloatingGenerator< Float >
 
class  Catch::Generators::RandomIntegerGenerator< Integer >
 
class  Catch::Generators::RangeGenerator< T >
 
struct  Catch::TestCaseInfo
 
class  Catch::TestCase
 
struct  Catch::IRunner
 

Namespaces

 Catch
 
 Catch::Detail
 
 Catch::literals
 
 Catch::Matchers
 
 Catch::Matchers::Impl
 
 Catch::Matchers::Floating
 
 Catch::Matchers::Generic
 
 Catch::Matchers::Generic::Detail
 
 Catch::Matchers::StdString
 
 Catch::Matchers::Vector
 
 Catch::Matchers::Vector::Detail
 
 Catch::Generators
 
 Catch::Generators::pf
 

Macros

#define CATCH_VERSION_MAJOR
 
#define CATCH_VERSION_MINOR
 
#define CATCH_VERSION_PATCH
 
#define CATCH_INTERNAL_CONFIG_POSIX_SIGNALS
 
#define CATCH_INTERNAL_CONFIG_COUNTER
 
#define CATCH_CONFIG_COUNTER
 
#define CATCH_CONFIG_POSIX_SIGNALS
 
#define CATCH_CONFIG_WCHAR
 
#define CATCH_CONFIG_CPP11_TO_STRING
 
#define CATCH_CONFIG_DISABLE_EXCEPTIONS
 
#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS
 
#define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
 
#define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS
 
#define CATCH_INTERNAL_UNSUPPRESS_UNUSED_WARNINGS
 
#define CATCH_TRY
 
#define CATCH_CATCH_ALL
 
#define CATCH_CATCH_ANON(type)
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE2(name, line)
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE(name, line)
 
#define INTERNAL_CATCH_UNIQUE_NAME(name)
 
#define CATCH_INTERNAL_LINEINFO
 
#define CATCH_REGISTER_TAG_ALIAS(alias, spec)
 
#define CATCH_RECURSION_LEVEL0(...)
 
#define CATCH_RECURSION_LEVEL1(...)
 
#define CATCH_RECURSION_LEVEL2(...)
 
#define CATCH_RECURSION_LEVEL3(...)
 
#define CATCH_RECURSION_LEVEL4(...)
 
#define CATCH_RECURSION_LEVEL5(...)
 
#define CATCH_RECURSE(...)
 
#define CATCH_REC_END(...)
 
#define CATCH_REC_OUT
 
#define CATCH_EMPTY()
 
#define CATCH_DEFER(id)
 
#define CATCH_REC_GET_END2()
 
#define CATCH_REC_GET_END1(...)
 
#define CATCH_REC_GET_END(...)
 
#define CATCH_REC_NEXT0(test, next,...)
 
#define CATCH_REC_NEXT1(test, next)
 
#define CATCH_REC_NEXT(test, next)
 
#define CATCH_REC_LIST0(f, x, peek,...)
 
#define CATCH_REC_LIST1(f, x, peek,...)
 
#define CATCH_REC_LIST2(f, x, peek,...)
 
#define CATCH_REC_LIST0_UD(f, userdata, x, peek,...)
 
#define CATCH_REC_LIST1_UD(f, userdata, x, peek,...)
 
#define CATCH_REC_LIST2_UD(f, userdata, x, peek,...)
 
#define CATCH_REC_LIST_UD(f, userdata,...)
 
#define CATCH_REC_LIST(f,...)
 
#define INTERNAL_CATCH_EXPAND1(param)
 
#define INTERNAL_CATCH_EXPAND2(...)
 
#define INTERNAL_CATCH_DEF(...)
 
#define INTERNAL_CATCH_NOINTERNAL_CATCH_DEF
 
#define INTERNAL_CATCH_STRINGIZE(...)
 
#define INTERNAL_CATCH_STRINGIZE2(...)
 
#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param)
 
#define INTERNAL_CATCH_REMOVE_PARENS(...)
 
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME2(Name,...)
 
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME3(Name,...)
 
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME(Name,...)
 
#define INTERNAL_CATCH_MAKE_TYPE_LIST(types)
 
#define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(types)
 
#define INTERNAL_CATCH_TESTCASE2(TestName,...)
 
#define INTERNAL_CATCH_TESTCASE(...)
 
#define INTERNAL_CATCH_METHOD_AS_TEST_CASE(QualifiedMethod,...)
 
#define INTERNAL_CATCH_TEST_CASE_METHOD2(TestName, ClassName,...)
 
#define INTERNAL_CATCH_TEST_CASE_METHOD(ClassName,...)
 
#define INTERNAL_CATCH_REGISTER_TESTCASE(Function,...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_2(TestName, TestFunc, Name, Tags,...)
 
#define CATCH_INTERNAL_CHECK_UNIQUE_TYPES(...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE(Name, Tags,...)
 
#define INTERNAL_CATCH_TEMPLATE_REGISTRY_INITIATE(TestName, Name,...)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(TestName, TestFuncName, Name, Tags, TmplTypes, TypesList)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE(Name, Tags,...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2(TestNameClass, TestName, ClassName, Name, Tags,...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD(ClassName, Name, Tags,...)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2(TestNameClass, TestName, ClassName, Name, Tags, TmplTypes, TypesList)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD(ClassName, Name, Tags,...)
 
#define CATCH_INTERNAL_STRINGIFY(...)
 
#define INTERNAL_CATCH_TRY
 
#define INTERNAL_CATCH_CATCH(capturer)
 
#define INTERNAL_CATCH_REACT(handler)
 
#define INTERNAL_CATCH_TEST(macroName, resultDisposition,...)
 
#define INTERNAL_CATCH_IF(macroName, resultDisposition,...)
 
#define INTERNAL_CATCH_ELSE(macroName, resultDisposition,...)
 
#define INTERNAL_CATCH_NO_THROW(macroName, resultDisposition,...)
 
#define INTERNAL_CATCH_THROWS(macroName, resultDisposition,...)
 
#define INTERNAL_CATCH_THROWS_AS(macroName, exceptionType, resultDisposition, expr)
 
#define INTERNAL_CATCH_MSG(macroName, messageType, resultDisposition,...)
 
#define INTERNAL_CATCH_CAPTURE(varName, macroName,...)
 
#define INTERNAL_CATCH_INFO(macroName, log)
 
#define INTERNAL_CATCH_UNSCOPED_INFO(macroName, log)
 
#define INTERNAL_CATCH_THROWS_STR_MATCHES(macroName, resultDisposition, matcher,...)
 
#define INTERNAL_CATCH_SECTION(...)
 
#define INTERNAL_CATCH_DYNAMIC_SECTION(...)
 
#define BENCHMARK(name)
 
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2(translatorName, signature)
 
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION(signature)
 
#define INTERNAL_CHECK_THAT(macroName, matcher, resultDisposition, arg)
 
#define INTERNAL_CATCH_THROWS_MATCHES(macroName, exceptionType, resultDisposition, matcher,...)
 
#define CATCH_PREPARE_EXCEPTION(type, msg)
 
#define CATCH_INTERNAL_ERROR(msg)
 
#define CATCH_ERROR(msg)
 
#define CATCH_RUNTIME_ERROR(msg)
 
#define CATCH_ENFORCE(condition, msg)
 
#define GENERATE(...)
 
#define REQUIRE(...)
 
#define REQUIRE_FALSE(...)
 
#define REQUIRE_THROWS(...)
 
#define REQUIRE_THROWS_AS(expr, exceptionType)
 
#define REQUIRE_THROWS_WITH(expr, matcher)
 
#define REQUIRE_THROWS_MATCHES(expr, exceptionType, matcher)
 
#define REQUIRE_NOTHROW(...)
 
#define CHECK(...)
 
#define CHECK_FALSE(...)
 
#define CHECKED_IF(...)
 
#define CHECKED_ELSE(...)
 
#define CHECK_NOFAIL(...)
 
#define CHECK_THROWS(...)
 
#define CHECK_THROWS_AS(expr, exceptionType)
 
#define CHECK_THROWS_WITH(expr, matcher)
 
#define CHECK_THROWS_MATCHES(expr, exceptionType, matcher)
 
#define CHECK_NOTHROW(...)
 
#define CHECK_THAT(arg, matcher)
 
#define REQUIRE_THAT(arg, matcher)
 
#define INFO(msg)
 
#define UNSCOPED_INFO(msg)
 
#define WARN(msg)
 
#define CAPTURE(...)
 
#define TEST_CASE(...)
 
#define TEST_CASE_METHOD(className,...)
 
#define METHOD_AS_TEST_CASE(method,...)
 
#define REGISTER_TEST_CASE(Function,...)
 
#define SECTION(...)
 
#define DYNAMIC_SECTION(...)
 
#define FAIL(...)
 
#define FAIL_CHECK(...)
 
#define SUCCEED(...)
 
#define ANON_TEST_CASE()
 
#define TEMPLATE_TEST_CASE(...)
 
#define TEMPLATE_TEST_CASE_METHOD(className,...)
 
#define TEMPLATE_PRODUCT_TEST_CASE(...)
 
#define TEMPLATE_PRODUCT_TEST_CASE_METHOD(className,...)
 
#define STATIC_REQUIRE(...)
 
#define STATIC_REQUIRE_FALSE(...)
 
#define CATCH_TRANSLATE_EXCEPTION(signature)
 
#define SCENARIO(...)
 
#define SCENARIO_METHOD(className,...)
 
#define GIVEN(desc)
 
#define AND_GIVEN(desc)
 
#define WHEN(desc)
 
#define AND_WHEN(desc)
 
#define THEN(desc)
 
#define AND_THEN(desc)
 

Typedefs

using Catch::IReporterFactoryPtr = std::shared_ptr< IReporterFactory >
 
using Catch::exceptionTranslateFunction ) = std::string(*)(
 
using Catch::ExceptionTranslators = std::vector< std::unique_ptr< IExceptionTranslator const >>
 
using Catch::StringMatcher = Matchers::Impl::MatcherBase< std::string >
 
using Catch::Generators::GeneratorBasePtr = std::unique_ptr< GeneratorUntypedBase >
 
using Catch::IConfigPtr = std::shared_ptr< IConfig const >
 

Enumerations

enum  Catch::Verbosity
 

Functions

unsigned int Catch::rngSeed ()
 
std::ostream & operator<< (std::ostream &, Catch_global_namespace_dummy)
 
std::ostream & Catch::operator<< (std::ostream &os, SourceLineInfo const &info)
 
template<typename T >
T const & Catch::operator+ (T const &value, StreamEndStop)
 
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)
 
std::vector< TestCase > const & Catch::getAllTestCasesSorted (IConfig const &config)
 
auto Catch::operator+ (StringRef const &lhs, StringRef const &rhs) -> std::string
 
auto Catch::operator+ (StringRef const &lhs, char const *rhs) -> std::string
 
auto Catch::operator+ (char const *lhs, StringRef const &rhs) -> std::string
 
auto Catch::operator+= (std::string &lhs, StringRef const &sr) -> std::string &
 
auto Catch::operator<< (std::ostream &os, StringRef const &sr) -> std::ostream &
 
auto Catch::operator""_sr (char const *rawChars, std::size_t size) noexcept-> StringRef
 
auto operator""_catch_sr (char const *rawChars, std::size_t size) noexcept-> Catch::StringRef
 
auto Catch::makeTestInvoker (void(*testAsFunction)()) noexcept-> ITestInvoker *
 
template<typename C >
auto Catch::makeTestInvoker (void(C::*testAsMethod)()) noexcept-> ITestInvoker *
 
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)
 
bool Catch::shouldSuppressFailure (int flags)
 
std::ostream & Catch::cout ()
 
std::ostream & Catch::cerr ()
 
std::ostream & Catch::clog ()
 
auto Catch::makeStream (StringRef const &filename) -> IStream const *
 
std::string Catch::Detail::rawMemoryToString (const void *object, std::size_t size)
 
template<typename T >
std::string Catch::Detail::rawMemoryToString (const T &object)
 
template<typename E >
std::string Catch::Detail::convertUnknownEnumToString (E e)
 
template<typename T >
std::enable_if< !std::is_enum
< T >::value
&&!std::is_base_of
< std::exception, T >::value,
std::string >::type 
Catch::Detail::convertUnstreamable (T const &)
 
template<typename T >
std::enable_if< !std::is_enum
< T >::value &&std::is_base_of
< std::exception, T >::value,
std::string >::type 
Catch::Detail::convertUnstreamable (T const &ex)
 
template<typename T >
std::enable_if< std::is_enum
< T >::value, std::string >
::type 
Catch::Detail::convertUnstreamable (T const &value)
 
template<typename T >
std::string Catch::Detail::stringify (const T &e)
 
template<typename InputIterator >
std::string Catch::Detail::rangeToString (InputIterator first, InputIterator last)
 
template<typename Range >
std::string Catch::rangeToString (Range const &range)
 
template<typename Allocator >
std::string Catch::rangeToString (std::vector< bool, Allocator > const &v)
 
void Catch::formatReconstructedExpression (std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs)
 
template<typename LhsT , typename RhsT >
auto Catch::compareEqual (LhsT const &lhs, RhsT const &rhs) -> bool
 
template<typename T >
auto Catch::compareEqual (T *const &lhs, int rhs) -> bool
 
template<typename T >
auto Catch::compareEqual (T *const &lhs, long rhs) -> bool
 
template<typename T >
auto Catch::compareEqual (int lhs, T *const &rhs) -> bool
 
template<typename T >
auto Catch::compareEqual (long lhs, T *const &rhs) -> bool
 
template<typename LhsT , typename RhsT >
auto Catch::compareNotEqual (LhsT const &lhs, RhsT &&rhs) -> bool
 
template<typename T >
auto Catch::compareNotEqual (T *const &lhs, int rhs) -> bool
 
template<typename T >
auto Catch::compareNotEqual (T *const &lhs, long rhs) -> bool
 
template<typename T >
auto Catch::compareNotEqual (int lhs, T *const &rhs) -> bool
 
template<typename T >
auto Catch::compareNotEqual (long lhs, T *const &rhs) -> bool
 
void Catch::handleExpression (ITransientExpression const &expr)
 
template<typename T >
void Catch::handleExpression (ExprLhs< T > const &expr)
 
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 ()
 
void Catch::cleanUp ()
 
std::string Catch::translateActiveException ()
 
Detail::Approx Catch::literals::operator""_a (long double val)
 
Detail::Approx Catch::literals::operator""_a (unsigned long long val)
 
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)
 
bool Catch::replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis)
 
Floating::WithinUlpsMatcher Catch::Matchers::WithinULP (double target, int maxUlpDiff)
 
Floating::WithinUlpsMatcher Catch::Matchers::WithinULP (float target, int maxUlpDiff)
 
Floating::WithinAbsMatcher Catch::Matchers::WithinAbs (double target, double margin)
 
std::string Catch::Matchers::Generic::Detail::finalizeDescription (const std::string &desc)
 
template<typename T >
Generic::PredicateMatcher< T > Catch::Matchers::Predicate (std::function< bool(T const &)> const &predicate, std::string const &description="")
 
StdString::EqualsMatcher Catch::Matchers::Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
StdString::ContainsMatcher Catch::Matchers::Contains (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
StdString::EndsWithMatcher Catch::Matchers::EndsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
StdString::StartsWithMatcher Catch::Matchers::StartsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
StdString::RegexMatcher Catch::Matchers::Matches (std::string const &regex, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
template<typename InputIterator , typename T >
size_t Catch::Matchers::Vector::Detail::count (InputIterator first, InputIterator last, T const &item)
 
template<typename InputIterator , typename T >
bool Catch::Matchers::Vector::Detail::contains (InputIterator first, InputIterator last, T const &item)
 
template<typename T >
Vector::ContainsMatcher< T > Catch::Matchers::Contains (std::vector< T > const &comparator)
 
template<typename T >
Vector::ContainsElementMatcher< T > Catch::Matchers::VectorContains (T const &comparator)
 
template<typename T >
Vector::EqualsMatcher< T > Catch::Matchers::Equals (std::vector< T > const &comparator)
 
template<typename T >
Vector::UnorderedEqualsMatcher< T > Catch::Matchers::UnorderedEquals (std::vector< T > const &target)
 
void Catch::handleExceptionMatchExpr (AssertionHandler &handler, StringMatcher const &matcher, StringRef const &matcherString)
 
template<typename ArgT , typename MatcherT >
auto Catch::makeMatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT >
 
void Catch::throw_exception (std::exception const &e)
 
template<typename T , typename... Args>
std::unique_ptr< T > Catch::Generators::pf::make_unique (Args &&...args)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::value (T &&value)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::values (std::initializer_list< T > values)
 
template<typename... Ts>
GeneratorWrapper< std::tuple
< Ts...> > 
Catch::Generators::table (std::initializer_list< std::tuple< typename std::decay< Ts >::type...>> tuples)
 
template<typename T , typename... Gs>
auto Catch::Generators::makeGenerators (GeneratorWrapper< T > &&generator, Gs...moreGenerators) -> Generators< T >
 
template<typename T >
auto Catch::Generators::makeGenerators (GeneratorWrapper< T > &&generator) -> Generators< T >
 
template<typename T , typename... Gs>
auto Catch::Generators::makeGenerators (T &&val, Gs...moreGenerators) -> Generators< T >
 
template<typename T , typename U , typename... Gs>
auto Catch::Generators::makeGenerators (as< T >, U &&val, Gs...moreGenerators) -> Generators< T >
 
auto Catch::Generators::acquireGeneratorTracker (SourceLineInfo const &lineInfo) -> IGeneratorTracker &
 
template<typename L >
auto Catch::Generators::generate (SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get())
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::take (size_t target, GeneratorWrapper< T > &&generator)
 
template<typename T , typename Predicate >
GeneratorWrapper< T > Catch::Generators::filter (Predicate &&pred, GeneratorWrapper< T > &&generator)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::repeat (size_t repeats, GeneratorWrapper< T > &&generator)
 
template<typename T , typename U , typename Func >
GeneratorWrapper< T > Catch::Generators::map (Func &&function, GeneratorWrapper< U > &&generator)
 
template<typename T , typename Func >
GeneratorWrapper< T > Catch::Generators::map (Func &&function, GeneratorWrapper< T > &&generator)
 
template<typename T >
GeneratorWrapper< std::vector
< T > > 
Catch::Generators::chunk (size_t size, GeneratorWrapper< T > &&generator)
 
IMutableContext & Catch::getCurrentMutableContext ()
 
IContext & Catch::getCurrentContext ()
 
void Catch::cleanUpContext ()
 
template<typename T >
std::enable_if
< std::is_integral< T >::value
&&!std::is_same< T, bool >
::value, GeneratorWrapper< T >
>::type 
Catch::Generators::random (T a, T b)
 
template<typename T >
std::enable_if
< std::is_floating_point< T >
::value, GeneratorWrapper< T >
>::type 
Catch::Generators::random (T a, T b)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::range (T const &start, T const &end, T const &step)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::range (T const &start, T const &end)
 
TestCase Catch::makeTestCase (ITestInvoker *testCase, std::string const &className, NameAndTags const &nameAndTags, SourceLineInfo const &lineInfo)
 

Variables

const std::string Catch::Detail::unprintableString
 
not_this_one Catch::begin (...)
 
not_this_one Catch::end (...)
 

Macro Definition Documentation

#define AND_GIVEN (   desc)
#define AND_THEN (   desc)
#define AND_WHEN (   desc)
#define ANON_TEST_CASE ( )
#define BENCHMARK (   name)
#define CAPTURE (   ...)
#define CATCH_CATCH_ALL
#define CATCH_CATCH_ANON (   type)
#define CATCH_CONFIG_COUNTER
#define CATCH_CONFIG_CPP11_TO_STRING
#define CATCH_CONFIG_DISABLE_EXCEPTIONS
#define CATCH_CONFIG_POSIX_SIGNALS
#define CATCH_CONFIG_WCHAR
#define CATCH_DEFER (   id)
#define CATCH_EMPTY ( )
#define CATCH_ENFORCE (   condition,
  msg 
)
#define CATCH_ERROR (   msg)
#define CATCH_INTERNAL_CHECK_UNIQUE_TYPES (   ...)
#define CATCH_INTERNAL_CONFIG_COUNTER
#define CATCH_INTERNAL_CONFIG_POSIX_SIGNALS
#define CATCH_INTERNAL_ERROR (   msg)
#define CATCH_INTERNAL_LINEINFO
#define CATCH_INTERNAL_STRINGIFY (   ...)
#define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS
#define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS
#define CATCH_INTERNAL_UNSUPPRESS_GLOBALS_WARNINGS
#define CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS
#define CATCH_INTERNAL_UNSUPPRESS_UNUSED_WARNINGS
#define CATCH_PREPARE_EXCEPTION (   type,
  msg 
)
#define CATCH_REC_END (   ...)
#define CATCH_REC_GET_END (   ...)
#define CATCH_REC_GET_END1 (   ...)
#define CATCH_REC_GET_END2 ( )
#define CATCH_REC_LIST (   f,
  ... 
)
#define CATCH_REC_LIST0 (   f,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST0_UD (   f,
  userdata,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST1 (   f,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST1_UD (   f,
  userdata,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST2 (   f,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST2_UD (   f,
  userdata,
  x,
  peek,
  ... 
)
#define CATCH_REC_LIST_UD (   f,
  userdata,
  ... 
)
#define CATCH_REC_NEXT (   test,
  next 
)
#define CATCH_REC_NEXT0 (   test,
  next,
  ... 
)
#define CATCH_REC_NEXT1 (   test,
  next 
)
#define CATCH_REC_OUT
#define CATCH_RECURSE (   ...)
#define CATCH_RECURSION_LEVEL0 (   ...)
#define CATCH_RECURSION_LEVEL1 (   ...)
#define CATCH_RECURSION_LEVEL2 (   ...)
#define CATCH_RECURSION_LEVEL3 (   ...)
#define CATCH_RECURSION_LEVEL4 (   ...)
#define CATCH_RECURSION_LEVEL5 (   ...)
#define CATCH_REGISTER_TAG_ALIAS (   alias,
  spec 
)
#define CATCH_RUNTIME_ERROR (   msg)
#define CATCH_TRANSLATE_EXCEPTION (   signature)
#define CATCH_TRY
#define CATCH_VERSION_MAJOR
#define CATCH_VERSION_MINOR
#define CATCH_VERSION_PATCH
#define CHECK (   ...)
#define CHECK_FALSE (   ...)
#define CHECK_NOFAIL (   ...)
#define CHECK_NOTHROW (   ...)
#define CHECK_THAT (   arg,
  matcher 
)
#define CHECK_THROWS (   ...)
#define CHECK_THROWS_AS (   expr,
  exceptionType 
)
#define CHECK_THROWS_MATCHES (   expr,
  exceptionType,
  matcher 
)
#define CHECK_THROWS_WITH (   expr,
  matcher 
)
#define CHECKED_ELSE (   ...)
#define CHECKED_IF (   ...)
#define DYNAMIC_SECTION (   ...)
#define FAIL (   ...)
#define FAIL_CHECK (   ...)
#define GENERATE (   ...)
#define GIVEN (   desc)
#define INFO (   msg)
#define INTERNAL_CATCH_CAPTURE (   varName,
  macroName,
  ... 
)
#define INTERNAL_CATCH_CATCH (   capturer)
#define INTERNAL_CATCH_DEF (   ...)
#define INTERNAL_CATCH_DYNAMIC_SECTION (   ...)
#define INTERNAL_CATCH_ELSE (   macroName,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_EXPAND1 (   param)
#define INTERNAL_CATCH_EXPAND2 (   ...)
#define INTERNAL_CATCH_IF (   macroName,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_INFO (   macroName,
  log 
)
#define INTERNAL_CATCH_MAKE_TYPE_LIST (   types)
#define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES (   types)
#define INTERNAL_CATCH_METHOD_AS_TEST_CASE (   QualifiedMethod,
  ... 
)
#define INTERNAL_CATCH_MSG (   macroName,
  messageType,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_NO_THROW (   macroName,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_NOINTERNAL_CATCH_DEF
#define INTERNAL_CATCH_REACT (   handler)
#define INTERNAL_CATCH_REGISTER_TESTCASE (   Function,
  ... 
)
#define INTERNAL_CATCH_REMOVE_PARENS (   ...)
#define INTERNAL_CATCH_SECTION (   ...)
#define INTERNAL_CATCH_STRINGIZE (   ...)
#define INTERNAL_CATCH_STRINGIZE2 (   ...)
#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS (   param)
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE (   Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2 (   TestName,
  TestFuncName,
  Name,
  Tags,
  TmplTypes,
  TypesList 
)
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD (   ClassName,
  Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2 (   TestNameClass,
  TestName,
  ClassName,
  Name,
  Tags,
  TmplTypes,
  TypesList 
)
#define INTERNAL_CATCH_TEMPLATE_REGISTRY_INITIATE (   TestName,
  Name,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE (   Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_2 (   TestName,
  TestFunc,
  Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD (   ClassName,
  Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2 (   TestNameClass,
  TestName,
  ClassName,
  Name,
  Tags,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME (   Name,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME2 (   Name,
  ... 
)
#define INTERNAL_CATCH_TEMPLATE_UNIQUE_NAME3 (   Name,
  ... 
)
#define INTERNAL_CATCH_TEST (   macroName,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_TEST_CASE_METHOD (   ClassName,
  ... 
)
#define INTERNAL_CATCH_TEST_CASE_METHOD2 (   TestName,
  ClassName,
  ... 
)
#define INTERNAL_CATCH_TESTCASE (   ...)
#define INTERNAL_CATCH_TESTCASE2 (   TestName,
  ... 
)
#define INTERNAL_CATCH_THROWS (   macroName,
  resultDisposition,
  ... 
)
#define INTERNAL_CATCH_THROWS_AS (   macroName,
  exceptionType,
  resultDisposition,
  expr 
)
#define INTERNAL_CATCH_THROWS_MATCHES (   macroName,
  exceptionType,
  resultDisposition,
  matcher,
  ... 
)
#define INTERNAL_CATCH_THROWS_STR_MATCHES (   macroName,
  resultDisposition,
  matcher,
  ... 
)
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION (   signature)
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2 (   translatorName,
  signature 
)
#define INTERNAL_CATCH_TRY
#define INTERNAL_CATCH_UNIQUE_NAME (   name)
#define INTERNAL_CATCH_UNIQUE_NAME_LINE (   name,
  line 
)
#define INTERNAL_CATCH_UNIQUE_NAME_LINE2 (   name,
  line 
)
#define INTERNAL_CATCH_UNSCOPED_INFO (   macroName,
  log 
)
#define INTERNAL_CHECK_THAT (   macroName,
  matcher,
  resultDisposition,
  arg 
)
#define METHOD_AS_TEST_CASE (   method,
  ... 
)
#define REGISTER_TEST_CASE (   Function,
  ... 
)
#define REQUIRE (   ...)

Referenced by TEST_CASE().

#define REQUIRE_FALSE (   ...)
#define REQUIRE_NOTHROW (   ...)
#define REQUIRE_THAT (   arg,
  matcher 
)
#define REQUIRE_THROWS (   ...)
#define REQUIRE_THROWS_AS (   expr,
  exceptionType 
)
#define REQUIRE_THROWS_MATCHES (   expr,
  exceptionType,
  matcher 
)
#define REQUIRE_THROWS_WITH (   expr,
  matcher 
)
#define SCENARIO (   ...)
#define SCENARIO_METHOD (   className,
  ... 
)
#define SECTION (   ...)
#define STATIC_REQUIRE (   ...)
#define STATIC_REQUIRE_FALSE (   ...)
#define SUCCEED (   ...)
#define TEMPLATE_PRODUCT_TEST_CASE (   ...)
#define TEMPLATE_PRODUCT_TEST_CASE_METHOD (   className,
  ... 
)
#define TEMPLATE_TEST_CASE (   ...)
#define TEMPLATE_TEST_CASE_METHOD (   className,
  ... 
)
#define TEST_CASE (   ...)
#define TEST_CASE_METHOD (   className,
  ... 
)
#define THEN (   desc)
#define UNSCOPED_INFO (   msg)
#define WARN (   msg)
#define WHEN (   desc)

Function Documentation

auto operator""_catch_sr ( char const *  rawChars,
std::size_t  size 
) -> Catch::StringRef
inlinenoexcept
std::ostream& operator<< ( std::ostream &  ,
Catch_global_namespace_dummy   
)