ManaPlus
Data Structures | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
catch.hpp File Reference

(986a3bf)

#include <sstream>
#include <stdexcept>
#include <algorithm>
#include <ostream>
#include <string>
#include <memory>
#include <vector>
#include <stdlib.h>
#include <cstddef>
#include <iomanip>
#include <limits>
#include <stdint.h>
#include <iterator>
#include <cmath>
#include <set>

Go to the source code of this file.

Data Structures

struct  Catch::CaseSensitive
 
class  Catch::NonCopyable
 
class  Catch::SafeBool
 
struct  Catch::pluralise
 
struct  Catch::SourceLineInfo
 
struct  Catch::StreamEndStop
 
class  Catch::NotImplementedException
 
struct  Catch::IGeneratorInfo
 
struct  Catch::IGeneratorsForTest
 
class  Catch::Ptr< T >
 
struct  Catch::IShared
 
struct  Catch::SharedImpl< T >
 
struct  Catch::IContext
 
struct  Catch::IMutableContext
 
struct  Catch::ITestCase
 
struct  Catch::ITestCaseRegistry
 
class  Catch::MethodTestCase< C >
 
struct  Catch::NameAndDesc
 
struct  Catch::AutoReg
 
struct  Catch::ResultWas
 
struct  Catch::ResultDisposition
 
struct  Catch::AssertionInfo
 
struct  Catch::AssertionResultData
 
class  Catch::AssertionResult
 
struct  Catch::Matchers::Impl::Matcher< ExpressionT >
 
struct  Catch::Matchers::Impl::MatcherImpl< DerivedT, ExpressionT >
 
class  Catch::Matchers::Impl::Generic::Not< ExpressionT >
 
class  Catch::Matchers::Impl::Generic::AllOf< ExpressionT >
 
class  Catch::Matchers::Impl::Generic::AnyOf< ExpressionT >
 
struct  Catch::Matchers::Impl::StdString::CasedString
 
struct  Catch::Matchers::Impl::StdString::Equals
 
struct  Catch::Matchers::Impl::StdString::Contains
 
struct  Catch::Matchers::Impl::StdString::StartsWith
 
struct  Catch::Matchers::Impl::StdString::EndsWith
 
struct  Catch::TestFailureException
 
struct  Catch::CopyableStream
 
class  Catch::ResultBuilder
 
struct  Catch::ResultBuilder::ExprComponents
 
struct  Catch::Internal::OperatorTraits< Op >
 
struct  Catch::Internal::OperatorTraits< IsEqualTo >
 
struct  Catch::Internal::OperatorTraits< IsNotEqualTo >
 
struct  Catch::Internal::OperatorTraits< IsLessThan >
 
struct  Catch::Internal::OperatorTraits< IsGreaterThan >
 
struct  Catch::Internal::OperatorTraits< IsLessThanOrEqualTo >
 
struct  Catch::Internal::OperatorTraits< IsGreaterThanOrEqualTo >
 
class  Catch::Internal::Evaluator< T1, T2, Op >
 
struct  Catch::Internal::Evaluator< T1, T2, IsEqualTo >
 
struct  Catch::Internal::Evaluator< T1, T2, IsNotEqualTo >
 
struct  Catch::Internal::Evaluator< T1, T2, IsLessThan >
 
struct  Catch::Internal::Evaluator< T1, T2, IsGreaterThan >
 
struct  Catch::Internal::Evaluator< T1, T2, IsGreaterThanOrEqualTo >
 
struct  Catch::Internal::Evaluator< T1, T2, IsLessThanOrEqualTo >
 
struct  Catch::Detail::BorgType
 
struct  Catch::Detail::TrueType
 
struct  Catch::Detail::FalseType
 
struct  Catch::Detail::IsStreamInsertable< T >
 
struct  Catch::Detail::StringMakerBase< C >
 
struct  Catch::Detail::StringMakerBase< true >
 
struct  Catch::StringMaker< T >
 
struct  Catch::StringMaker< T * >
 
struct  Catch::StringMaker< R C::* >
 
class  Catch::ExpressionLhs< T >
 
struct  Catch::MessageInfo
 
struct  Catch::MessageBuilder
 
class  Catch::ScopedMessage
 
struct  Catch::IResultCapture
 
struct  Catch::IRunner
 
struct  Catch::Counts
 
struct  Catch::Totals
 
struct  Catch::SectionInfo
 
struct  Catch::SectionEndInfo
 
class  Catch::Timer
 
class  Catch::Section
 
struct  Catch::IGenerator< T >
 
class  Catch::BetweenGenerator< T >
 
class  Catch::ValuesGenerator< T >
 
class  Catch::CompositeGenerator< T >
 
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::TagAlias
 
struct  Catch::RegistrarForTagAliases
 
class  Catch::Option< T >
 
struct  Catch::ITagAliasRegistry
 
struct  Catch::TestCaseInfo
 
class  Catch::TestCase
 

Namespaces

 Catch
 
 Catch::Matchers
 
 Catch::Matchers::Impl
 
 Catch::Matchers::Impl::Generic
 
 Catch::Matchers::Impl::StdString
 
 Catch::Internal
 
 Catch::Detail
 
 Catch::Generators
 

Macros

#define TWOBLUECUBES_CATCH_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_COMMON_H_INCLUDED
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE2(name, line)   name##line
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE(name, line)   INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line )
 
#define INTERNAL_CATCH_UNIQUE_NAME(name)   INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ )
 
#define INTERNAL_CATCH_STRINGIFY2(expr)   #expr
 
#define INTERNAL_CATCH_STRINGIFY(expr)   INTERNAL_CATCH_STRINGIFY2( expr )
 
#define TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED
 
#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS
 
#define CATCH_NOEXCEPT   throw()
 
#define CATCH_NOEXCEPT_IS(x)
 
#define CATCH_NULL   NULL
 
#define CATCH_OVERRIDE
 
#define CATCH_AUTO_PTR(T)   std::auto_ptr<T>
 
#define CATCH_INTERNAL_LINEINFO   ::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) )
 
#define CATCH_INTERNAL_ERROR(msg)   ::Catch::throwLogicError( msg, CATCH_INTERNAL_LINEINFO );
 
#define CATCH_NOT_IMPLEMENTED   throw Catch::NotImplementedException( CATCH_INTERNAL_LINEINFO )
 
#define TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_PTR_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_TEST_REGISTRY_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED
 
#define INTERNAL_CATCH_TESTCASE2(TestName, Name, Desc)
 
#define INTERNAL_CATCH_TESTCASE(Name, Desc)    INTERNAL_CATCH_TESTCASE2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), Name, Desc )
 
#define INTERNAL_CATCH_METHOD_AS_TEST_CASE(QualifiedMethod, Name, Desc)    namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &QualifiedMethod, "&" #QualifiedMethod, Catch::NameAndDesc( Name, Desc ), CATCH_INTERNAL_LINEINFO ); }
 
#define INTERNAL_CATCH_TEST_CASE_METHOD2(TestCaseName, ClassName, TestName, Desc)
 
#define INTERNAL_CATCH_TEST_CASE_METHOD(ClassName, TestName, Desc)    INTERNAL_CATCH_TEST_CASE_METHOD2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), ClassName, TestName, Desc )
 
#define INTERNAL_CATCH_REGISTER_TESTCASE(Function, Name, Desc)    Catch::AutoReg( Function, CATCH_INTERNAL_LINEINFO, Catch::NameAndDesc( Name, Desc ) );
 
#define TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_RESULT_BUILDER_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_MATCHERS_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_EXPRESSION_LHS_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_EVALUATE_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_TOSTRING_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_INTERFACES_CAPTURE_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED
 
#define CATCH_BREAK_INTO_DEBUGGER()   Catch::alwaysTrue();
 
#define TWOBLUECUBES_CATCH_INTERFACES_RUNNER_H_INCLUDED
 
#define INTERNAL_CATCH_REACT(resultBuilder)
 
#define INTERNAL_CATCH_TEST(expr, resultDisposition, macroName)
 
#define INTERNAL_CATCH_IF(expr, resultDisposition, macroName)
 
#define INTERNAL_CATCH_ELSE(expr, resultDisposition, macroName)
 
#define INTERNAL_CATCH_NO_THROW(expr, resultDisposition, macroName)
 
#define INTERNAL_CATCH_THROWS(expr, resultDisposition, matcher, macroName)
 
#define INTERNAL_CATCH_THROWS_AS(expr, exceptionType, resultDisposition, macroName)
 
#define INTERNAL_CATCH_MSG(messageType, resultDisposition, macroName, log)
 
#define INTERNAL_CATCH_INFO(log, macroName)    Catch::ScopedMessage INTERNAL_CATCH_UNIQUE_NAME( scopedMessage ) = Catch::MessageBuilder( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log;
 
#define INTERNAL_CHECK_THAT(arg, matcher, resultDisposition, macroName)
 
#define TWOBLUECUBES_CATCH_SECTION_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_TOTALS_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED
 
#define INTERNAL_CATCH_SECTION(name, desc)    if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInfo( CATCH_INTERNAL_LINEINFO, name, desc ) )
 
#define TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED
 
#define INTERNAL_CATCH_LINESTR2(line)   #line
 
#define INTERNAL_CATCH_LINESTR(line)   INTERNAL_CATCH_LINESTR2( line )
 
#define INTERNAL_CATCH_GENERATE(expr)   expr.setFileInfo( __FILE__ "(" INTERNAL_CATCH_LINESTR( __LINE__ ) ")" )
 
#define TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_INTERFACES_REGISTRY_HUB_H_INCLUDED
 
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2(translatorName, signature)
 
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION(signature)   INTERNAL_CATCH_TRANSLATE_EXCEPTION2( INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator ), signature )
 
#define TWOBLUECUBES_CATCH_APPROX_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED
 
#define TWOBLUECUBES_CATCH_TAG_ALIAS_H_INCLUDED
 
#define CATCH_REGISTER_TAG_ALIAS(alias, spec)   namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias, spec, CATCH_INTERNAL_LINEINFO ); }
 
#define TWOBLUECUBES_CATCH_OPTION_HPP_INCLUDED
 
#define TWOBLUECUBES_CATCH_TEST_CASE_INFO_H_INCLUDED
 
#define REQUIRE(expr)   INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "REQUIRE" )
 
#define REQUIRE_FALSE(expr)   INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal | Catch::ResultDisposition::FalseTest, "REQUIRE_FALSE" )
 
#define REQUIRE_THROWS(expr)   INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::Normal, "", "REQUIRE_THROWS" )
 
#define REQUIRE_THROWS_AS(expr, exceptionType)   INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::Normal, "REQUIRE_THROWS_AS" )
 
#define REQUIRE_THROWS_WITH(expr, matcher)   INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::Normal, matcher, "REQUIRE_THROWS_WITH" )
 
#define REQUIRE_NOTHROW(expr)   INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::Normal, "REQUIRE_NOTHROW" )
 
#define CHECK(expr)   INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK" )
 
#define CHECK_FALSE(expr)   INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::FalseTest, "CHECK_FALSE" )
 
#define CHECKED_IF(expr)   INTERNAL_CATCH_IF( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_IF" )
 
#define CHECKED_ELSE(expr)   INTERNAL_CATCH_ELSE( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_ELSE" )
 
#define CHECK_NOFAIL(expr)   INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, "CHECK_NOFAIL" )
 
#define CHECK_THROWS(expr)   INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::ContinueOnFailure, "", "CHECK_THROWS" )
 
#define CHECK_THROWS_AS(expr, exceptionType)   INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THROWS_AS" )
 
#define CHECK_THROWS_WITH(expr, matcher)   INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::ContinueOnFailure, matcher, "CHECK_THROWS_WITH" )
 
#define CHECK_NOTHROW(expr)   INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK_NOTHROW" )
 
#define CHECK_THAT(arg, matcher)   INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THAT" )
 
#define REQUIRE_THAT(arg, matcher)   INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::Normal, "REQUIRE_THAT" )
 
#define INFO(msg)   INTERNAL_CATCH_INFO( msg, "INFO" )
 
#define WARN(msg)   INTERNAL_CATCH_MSG( Catch::ResultWas::Warning, Catch::ResultDisposition::ContinueOnFailure, "WARN", msg )
 
#define SCOPED_INFO(msg)   INTERNAL_CATCH_INFO( msg, "INFO" )
 
#define CAPTURE(msg)   INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" )
 
#define SCOPED_CAPTURE(msg)   INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" )
 
#define TEST_CASE(name, description)   INTERNAL_CATCH_TESTCASE( name, description )
 
#define TEST_CASE_METHOD(className, name, description)   INTERNAL_CATCH_TEST_CASE_METHOD( className, name, description )
 
#define METHOD_AS_TEST_CASE(method, name, description)   INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, name, description )
 
#define REGISTER_TEST_CASE(method, name, description)   INTERNAL_CATCH_REGISTER_TESTCASE( method, name, description )
 
#define SECTION(name, description)   INTERNAL_CATCH_SECTION( name, description )
 
#define FAIL(msg)   INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, "FAIL", msg )
 
#define SUCCEED(msg)   INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "SUCCEED", msg )
 
#define ANON_TEST_CASE()   INTERNAL_CATCH_TESTCASE( "", "" )
 
#define REGISTER_REPORTER(name, reporterType)   INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType )
 
#define REGISTER_LEGACY_REPORTER(name, reporterType)   INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType )
 
#define GENERATE(expr)   INTERNAL_CATCH_GENERATE( expr )
 
#define CATCH_TRANSLATE_EXCEPTION(signature)   INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )
 
#define SCENARIO(name, tags)   TEST_CASE( "Scenario: " name, tags )
 
#define SCENARIO_METHOD(className, name, tags)   INTERNAL_CATCH_TEST_CASE_METHOD( className, "Scenario: " name, tags )
 
#define GIVEN(desc)   SECTION( std::string(" Given: ") + desc, "" )
 
#define WHEN(desc)   SECTION( std::string(" When: ") + desc, "" )
 
#define AND_WHEN(desc)   SECTION( std::string("And when: ") + desc, "" )
 
#define THEN(desc)   SECTION( std::string(" Then: ") + desc, "" )
 
#define AND_THEN(desc)   SECTION( std::string(" And: ") + desc, "" )
 

Typedefs

typedef void(* Catch::TestFunction) ()
 
typedef std::string(* Catch::exceptionTranslateFunction) ()
 
typedef std::vector< const IExceptionTranslator * > Catch::ExceptionTranslators
 

Enumerations

enum  Catch::Internal::Operator {
  Catch::Internal::IsEqualTo , Catch::Internal::IsNotEqualTo , Catch::Internal::IsLessThan , Catch::Internal::IsGreaterThan ,
  Catch::Internal::IsLessThanOrEqualTo , Catch::Internal::IsGreaterThanOrEqualTo
}
 

Functions

template<typename ContainerT >
void Catch::deleteAll (ContainerT &container)
 
template<typename AssociativeContainerT >
void Catch::deleteAllValues (AssociativeContainerT &container)
 
bool Catch::startsWith (std::string const &s, std::string const &prefix)
 
bool Catch::endsWith (std::string const &s, std::string const &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)
 
std::ostream & Catch::operator<< (std::ostream &os, SourceLineInfo const &info)
 
bool Catch::isTrue (bool value)
 
bool Catch::alwaysTrue ()
 
bool Catch::alwaysFalse ()
 
void Catch::throwLogicError (std::string const &message, SourceLineInfo const &locationInfo)
 
void Catch::seedRng (IConfig const &config)
 
unsigned int Catch::rngSeed ()
 
template<typename T >
T const & Catch::operator+ (T const &value, StreamEndStop)
 
IGeneratorsForTest * Catch::createGeneratorsForTest ()
 
IContext & Catch::getCurrentContext ()
 
IMutableContext & Catch::getCurrentMutableContext ()
 
void Catch::cleanUpContext ()
 
Stream Catch::createStream (std::string const &streamName)
 
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)
 
void Catch::registerTestCase (ITestCase *testCase, char const *className, NameAndDesc const &nameAndDesc, SourceLineInfo const &lineInfo)
 
void Catch::registerTestCaseFunction (TestFunction function, SourceLineInfo const &lineInfo, NameAndDesc const &nameAndDesc)
 
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::string Catch::Matchers::Impl::StdString::makeString (std::string const &str)
 
std::string Catch::Matchers::Impl::StdString::makeString (const char *str)
 
template<typename ExpressionT >
Impl::Generic::Not< ExpressionT > Catch::Matchers::Not (Impl::Matcher< ExpressionT > const &m)
 
template<typename ExpressionT >
Impl::Generic::AllOf< ExpressionT > Catch::Matchers::AllOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2)
 
template<typename ExpressionT >
Impl::Generic::AllOf< ExpressionT > Catch::Matchers::AllOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2, Impl::Matcher< ExpressionT > const &m3)
 
template<typename ExpressionT >
Impl::Generic::AnyOf< ExpressionT > Catch::Matchers::AnyOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2)
 
template<typename ExpressionT >
Impl::Generic::AnyOf< ExpressionT > Catch::Matchers::AnyOf (Impl::Matcher< ExpressionT > const &m1, Impl::Matcher< ExpressionT > const &m2, Impl::Matcher< ExpressionT > const &m3)
 
Impl::StdString::Equals Catch::Matchers::Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Equals Catch::Matchers::Equals (const char *str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Contains Catch::Matchers::Contains (std::string const &substr, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::Contains Catch::Matchers::Contains (const char *substr, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
Impl::StdString::StartsWith Catch::Matchers::StartsWith (std::string const &substr)
 
Impl::StdString::StartsWith Catch::Matchers::StartsWith (const char *substr)
 
Impl::StdString::EndsWith Catch::Matchers::EndsWith (std::string const &substr)
 
Impl::StdString::EndsWith Catch::Matchers::EndsWith (const char *substr)
 
template<typename T >
T & Catch::Internal::opCast (T const &t)
 
template<Operator Op, typename T1 , typename T2 >
bool Catch::Internal::applyEvaluator (T1 const &lhs, T2 const &rhs)
 
template<Operator Op, typename T1 , typename T2 >
bool Catch::Internal::compare (T1 const &lhs, T2 const &rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned int lhs, int rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned long lhs, int rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned char lhs, int rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned int lhs, long rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned long lhs, long rhs)
 
template<Operator Op>
bool Catch::Internal::compare (unsigned char lhs, long rhs)
 
template<Operator Op>
bool Catch::Internal::compare (int lhs, unsigned int rhs)
 
template<Operator Op>
bool Catch::Internal::compare (int lhs, unsigned long rhs)
 
template<Operator Op>
bool Catch::Internal::compare (int lhs, unsigned char rhs)
 
template<Operator Op>
bool Catch::Internal::compare (long lhs, unsigned int rhs)
 
template<Operator Op>
bool Catch::Internal::compare (long lhs, unsigned long rhs)
 
template<Operator Op>
bool Catch::Internal::compare (long lhs, unsigned char rhs)
 
template<Operator Op, typename T >
bool Catch::Internal::compare (long lhs, T *rhs)
 
template<Operator Op, typename T >
bool Catch::Internal::compare (T *lhs, long rhs)
 
template<Operator Op, typename T >
bool Catch::Internal::compare (int lhs, T *rhs)
 
template<Operator Op, typename T >
bool Catch::Internal::compare (T *lhs, int rhs)
 
template<typename T >
std::string Catch::toString (T const &value)
 converts any type to a string More...
 
std::string Catch::toString (std::string const &value)
 
std::string Catch::toString (std::wstring const &value)
 
std::string Catch::toString (const char *const value)
 
std::string Catch::toString (char *const value)
 
std::string Catch::toString (const wchar_t *const value)
 
std::string Catch::toString (wchar_t *const value)
 
std::string Catch::toString (int value)
 
std::string Catch::toString (unsigned long value)
 
std::string Catch::toString (unsigned int value)
 
std::string Catch::toString (const double value)
 
std::string Catch::toString (const float value)
 
std::string Catch::toString (bool value)
 
std::string Catch::toString (char value)
 
std::string Catch::toString (signed char value)
 
std::string Catch::toString (unsigned char value)
 
TrueType & Catch::Detail::testStreamable (std::ostream &)
 
FalseType Catch::Detail::testStreamable (FalseType)
 
FalseType Catch::Detail::operator<< (std::ostream const &, BorgType 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 InputIterator >
std::string Catch::Detail::rangeToString (InputIterator first, InputIterator last)
 
template<typename T , typename Allocator >
std::string Catch::toString (std::vector< T, Allocator > const &v)
 
template<typename T >
std::string Catch::Detail::makeString (T const &value)
 
IResultCapture & Catch::getResultCapture ()
 
bool Catch::isDebuggerActive ()
 
void Catch::writeToDebugConsole (std::string const &text)
 
template<typename T >
CompositeGenerator< T > Catch::Generators::between (T from, T to)
 
template<typename T >
CompositeGenerator< T > Catch::Generators::values (T val1, T val2)
 
template<typename T >
CompositeGenerator< T > Catch::Generators::values (T val1, T val2, T val3)
 
template<typename T >
CompositeGenerator< T > Catch::Generators::values (T val1, T val2, T val3, T val4)
 
IRegistryHub & Catch::getRegistryHub ()
 
IMutableRegistryHub & Catch::getMutableRegistryHub ()
 
void Catch::cleanUp ()
 
std::string Catch::translateActiveException ()
 
template<>
std::string Catch::toString< Detail::Approx > (Detail::Approx const &value)
 
TestCase Catch::makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo)
 

Variables

const std::string Catch::Detail::unprintableString
 

Macro Definition Documentation

◆ AND_THEN

#define AND_THEN (   desc)    SECTION( std::string(" And: ") + desc, "" )

Definition at line 10497 of file catch.hpp.

◆ AND_WHEN

#define AND_WHEN (   desc)    SECTION( std::string("And when: ") + desc, "" )

Definition at line 10495 of file catch.hpp.

◆ ANON_TEST_CASE

#define ANON_TEST_CASE ( )    INTERNAL_CATCH_TESTCASE( "", "" )

Definition at line 10474 of file catch.hpp.

◆ CAPTURE

#define CAPTURE (   msg)    INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" )

Definition at line 10454 of file catch.hpp.

◆ CATCH_AUTO_PTR

#define CATCH_AUTO_PTR (   T)    std::auto_ptr<T>

Definition at line 313 of file catch.hpp.

◆ CATCH_BREAK_INTO_DEBUGGER

#define CATCH_BREAK_INTO_DEBUGGER ( )    Catch::alwaysTrue();

Definition at line 2038 of file catch.hpp.

◆ CATCH_INTERNAL_ERROR

#define CATCH_INTERNAL_ERROR (   msg)    ::Catch::throwLogicError( msg, CATCH_INTERNAL_LINEINFO );

Definition at line 430 of file catch.hpp.

◆ CATCH_INTERNAL_LINEINFO

#define CATCH_INTERNAL_LINEINFO   ::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) )

Definition at line 429 of file catch.hpp.

◆ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS

#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS

Definition at line 283 of file catch.hpp.

◆ CATCH_NOEXCEPT

#define CATCH_NOEXCEPT   throw()

Definition at line 291 of file catch.hpp.

◆ CATCH_NOEXCEPT_IS

#define CATCH_NOEXCEPT_IS (   x)

Definition at line 292 of file catch.hpp.

◆ CATCH_NOT_IMPLEMENTED

#define CATCH_NOT_IMPLEMENTED   throw Catch::NotImplementedException( CATCH_INTERNAL_LINEINFO )

Definition at line 454 of file catch.hpp.

◆ CATCH_NULL

#define CATCH_NULL   NULL

Definition at line 299 of file catch.hpp.

◆ CATCH_OVERRIDE

#define CATCH_OVERRIDE

Definition at line 306 of file catch.hpp.

◆ CATCH_REGISTER_TAG_ALIAS

#define CATCH_REGISTER_TAG_ALIAS (   alias,
  spec 
)    namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias, spec, CATCH_INTERNAL_LINEINFO ); }

Definition at line 2722 of file catch.hpp.

◆ CATCH_TRANSLATE_EXCEPTION

#define CATCH_TRANSLATE_EXCEPTION (   signature)    INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )

Definition at line 10483 of file catch.hpp.

◆ CHECK

#define CHECK (   expr)    INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK" )

Definition at line 10437 of file catch.hpp.

◆ CHECK_FALSE

#define CHECK_FALSE (   expr)    INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::FalseTest, "CHECK_FALSE" )

Definition at line 10438 of file catch.hpp.

◆ CHECK_NOFAIL

#define CHECK_NOFAIL (   expr)    INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, "CHECK_NOFAIL" )

Definition at line 10441 of file catch.hpp.

◆ CHECK_NOTHROW

#define CHECK_NOTHROW (   expr)    INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECK_NOTHROW" )

Definition at line 10446 of file catch.hpp.

◆ CHECK_THAT

#define CHECK_THAT (   arg,
  matcher 
)    INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THAT" )

Definition at line 10448 of file catch.hpp.

◆ CHECK_THROWS

#define CHECK_THROWS (   expr)    INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::ContinueOnFailure, "", "CHECK_THROWS" )

Definition at line 10443 of file catch.hpp.

◆ CHECK_THROWS_AS

#define CHECK_THROWS_AS (   expr,
  exceptionType 
)    INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::ContinueOnFailure, "CHECK_THROWS_AS" )

Definition at line 10444 of file catch.hpp.

◆ CHECK_THROWS_WITH

#define CHECK_THROWS_WITH (   expr,
  matcher 
)    INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::ContinueOnFailure, matcher, "CHECK_THROWS_WITH" )

Definition at line 10445 of file catch.hpp.

◆ CHECKED_ELSE

#define CHECKED_ELSE (   expr)    INTERNAL_CATCH_ELSE( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_ELSE" )

Definition at line 10440 of file catch.hpp.

◆ CHECKED_IF

#define CHECKED_IF (   expr)    INTERNAL_CATCH_IF( expr, Catch::ResultDisposition::ContinueOnFailure, "CHECKED_IF" )

Definition at line 10439 of file catch.hpp.

◆ FAIL

Definition at line 10471 of file catch.hpp.

◆ GENERATE

#define GENERATE (   expr)    INTERNAL_CATCH_GENERATE( expr )

Definition at line 10479 of file catch.hpp.

◆ GIVEN

#define GIVEN (   desc)    SECTION( std::string(" Given: ") + desc, "" )

Definition at line 10493 of file catch.hpp.

◆ INFO

#define INFO (   msg)    INTERNAL_CATCH_INFO( msg, "INFO" )

Definition at line 10451 of file catch.hpp.

◆ INTERNAL_CATCH_ELSE

#define INTERNAL_CATCH_ELSE (   expr,
  resultDisposition,
  macroName 
)
Value:
INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ); \
if( !Catch::getResultCapture().getLastResult()->succeeded() )
#define INTERNAL_CATCH_TEST(expr, resultDisposition, macroName)
Definition: catch.hpp:2063
IResultCapture & getResultCapture()

Definition at line 2082 of file catch.hpp.

◆ INTERNAL_CATCH_GENERATE

#define INTERNAL_CATCH_GENERATE (   expr)    expr.setFileInfo( __FILE__ "(" INTERNAL_CATCH_LINESTR( __LINE__ ) ")" )

Definition at line 2513 of file catch.hpp.

◆ INTERNAL_CATCH_IF

#define INTERNAL_CATCH_IF (   expr,
  resultDisposition,
  macroName 
)
Value:
INTERNAL_CATCH_TEST( expr, resultDisposition, macroName ); \
if( Catch::getResultCapture().getLastResult()->succeeded() )

Definition at line 2077 of file catch.hpp.

◆ INTERNAL_CATCH_INFO

#define INTERNAL_CATCH_INFO (   log,
  macroName 
)     Catch::ScopedMessage INTERNAL_CATCH_UNIQUE_NAME( scopedMessage ) = Catch::MessageBuilder( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log;

Definition at line 2157 of file catch.hpp.

◆ INTERNAL_CATCH_LINESTR

#define INTERNAL_CATCH_LINESTR (   line)    INTERNAL_CATCH_LINESTR2( line )

Definition at line 2511 of file catch.hpp.

◆ INTERNAL_CATCH_LINESTR2

#define INTERNAL_CATCH_LINESTR2 (   line)    #line

Definition at line 2510 of file catch.hpp.

◆ INTERNAL_CATCH_METHOD_AS_TEST_CASE

#define INTERNAL_CATCH_METHOD_AS_TEST_CASE (   QualifiedMethod,
  Name,
  Desc 
)     namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &QualifiedMethod, "&" #QualifiedMethod, Catch::NameAndDesc( Name, Desc ), CATCH_INTERNAL_LINEINFO ); }

Definition at line 748 of file catch.hpp.

◆ INTERNAL_CATCH_MSG

#define INTERNAL_CATCH_MSG (   messageType,
  resultDisposition,
  macroName,
  log 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, "", resultDisposition ); \
__catchResult << log + ::Catch::StreamEndStop(); \
__catchResult.captureResult( messageType ); \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::alwaysFalse() )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:429
bool alwaysFalse()
Definition: catch.hpp:407

Definition at line 2147 of file catch.hpp.

◆ INTERNAL_CATCH_NO_THROW

#define INTERNAL_CATCH_NO_THROW (   expr,
  resultDisposition,
  macroName 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
try { \
expr; \
__catchResult.captureResult( Catch::ResultWas::Ok ); \
} \
catch( ... ) { \
__catchResult.useActiveException( resultDisposition ); \
} \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::alwaysFalse() )

Definition at line 2087 of file catch.hpp.

◆ INTERNAL_CATCH_REACT

#define INTERNAL_CATCH_REACT (   resultBuilder)
Value:
if( resultBuilder.shouldDebugBreak() ) CATCH_BREAK_INTO_DEBUGGER(); \
resultBuilder.react();
#define CATCH_BREAK_INTO_DEBUGGER()
Definition: catch.hpp:2038

Definition at line 2058 of file catch.hpp.

◆ INTERNAL_CATCH_REGISTER_TESTCASE

#define INTERNAL_CATCH_REGISTER_TESTCASE (   Function,
  Name,
  Desc 
)     Catch::AutoReg( Function, CATCH_INTERNAL_LINEINFO, Catch::NameAndDesc( Name, Desc ) );

Definition at line 764 of file catch.hpp.

◆ INTERNAL_CATCH_SECTION

#define INTERNAL_CATCH_SECTION (   name,
  desc 
)     if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInfo( CATCH_INTERNAL_LINEINFO, name, desc ) )

Definition at line 2331 of file catch.hpp.

◆ INTERNAL_CATCH_STRINGIFY

#define INTERNAL_CATCH_STRINGIFY (   expr)    INTERNAL_CATCH_STRINGIFY2( expr )

Definition at line 72 of file catch.hpp.

◆ INTERNAL_CATCH_STRINGIFY2

#define INTERNAL_CATCH_STRINGIFY2 (   expr)    #expr

Definition at line 71 of file catch.hpp.

◆ INTERNAL_CATCH_TEST

#define INTERNAL_CATCH_TEST (   expr,
  resultDisposition,
  macroName 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
try { \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
( __catchResult <= expr ).endExpression(); \
} \
catch( ... ) { \
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
} \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::isTrue( false && static_cast<bool>(expr) ) )
bool isTrue(bool value)
Definition: catch.hpp:405

Definition at line 2063 of file catch.hpp.

◆ INTERNAL_CATCH_TEST_CASE_METHOD

#define INTERNAL_CATCH_TEST_CASE_METHOD (   ClassName,
  TestName,
  Desc 
)     INTERNAL_CATCH_TEST_CASE_METHOD2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), ClassName, TestName, Desc )

Definition at line 760 of file catch.hpp.

◆ INTERNAL_CATCH_TEST_CASE_METHOD2

#define INTERNAL_CATCH_TEST_CASE_METHOD2 (   TestCaseName,
  ClassName,
  TestName,
  Desc 
)
Value:
namespace{ \
struct TestCaseName : ClassName{ \
void test(); \
}; \
Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar ) ( &TestCaseName::test, #ClassName, Catch::NameAndDesc( TestName, Desc ), CATCH_INTERNAL_LINEINFO ); \
} \
void TestCaseName::test()
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:68

Definition at line 752 of file catch.hpp.

◆ INTERNAL_CATCH_TESTCASE

#define INTERNAL_CATCH_TESTCASE (   Name,
  Desc 
)     INTERNAL_CATCH_TESTCASE2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), Name, Desc )

Definition at line 744 of file catch.hpp.

◆ INTERNAL_CATCH_TESTCASE2

#define INTERNAL_CATCH_TESTCASE2 (   TestName,
  Name,
  Desc 
)
Value:
static void TestName(); \
namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( &TestName, CATCH_INTERNAL_LINEINFO, Catch::NameAndDesc( Name, Desc ) ); }\
static void TestName()

Definition at line 740 of file catch.hpp.

◆ INTERNAL_CATCH_THROWS

#define INTERNAL_CATCH_THROWS (   expr,
  resultDisposition,
  matcher,
  macroName 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition, #matcher ); \
if( __catchResult.allowThrows() ) \
try { \
expr; \
__catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \
} \
catch( ... ) { \
__catchResult.captureExpectedException( matcher ); \
} \
else \
__catchResult.captureResult( Catch::ResultWas::Ok ); \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::alwaysFalse() )

Definition at line 2101 of file catch.hpp.

◆ INTERNAL_CATCH_THROWS_AS

#define INTERNAL_CATCH_THROWS_AS (   expr,
  exceptionType,
  resultDisposition,
  macroName 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
if( __catchResult.allowThrows() ) \
try { \
expr; \
__catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \
} \
catch( exceptionType ) { \
__catchResult.captureResult( Catch::ResultWas::Ok ); \
} \
catch( ... ) { \
__catchResult.useActiveException( resultDisposition ); \
} \
else \
__catchResult.captureResult( Catch::ResultWas::Ok ); \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::alwaysFalse() )

Definition at line 2118 of file catch.hpp.

◆ INTERNAL_CATCH_TRANSLATE_EXCEPTION

#define INTERNAL_CATCH_TRANSLATE_EXCEPTION (   signature)    INTERNAL_CATCH_TRANSLATE_EXCEPTION2( INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator ), signature )

Definition at line 2616 of file catch.hpp.

◆ INTERNAL_CATCH_TRANSLATE_EXCEPTION2

#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2 (   translatorName,
  signature 
)
Value:
static std::string translatorName( signature ); \
namespace{ Catch::ExceptionTranslatorRegistrar INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionRegistrar )( &translatorName ); }\
static std::string translatorName( signature )

Definition at line 2611 of file catch.hpp.

◆ INTERNAL_CATCH_UNIQUE_NAME

#define INTERNAL_CATCH_UNIQUE_NAME (   name)    INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __LINE__ )

Definition at line 68 of file catch.hpp.

◆ INTERNAL_CATCH_UNIQUE_NAME_LINE

#define INTERNAL_CATCH_UNIQUE_NAME_LINE (   name,
  line 
)    INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line )

Definition at line 64 of file catch.hpp.

◆ INTERNAL_CATCH_UNIQUE_NAME_LINE2

#define INTERNAL_CATCH_UNIQUE_NAME_LINE2 (   name,
  line 
)    name##line

Definition at line 63 of file catch.hpp.

◆ INTERNAL_CHECK_THAT

#define INTERNAL_CHECK_THAT (   arg,
  matcher,
  resultDisposition,
  macroName 
)
Value:
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #arg ", " #matcher, resultDisposition ); \
try { \
std::string matcherAsString = (matcher).toString(); \
__catchResult \
.setLhs( Catch::toString( arg ) ) \
.setRhs( matcherAsString == Catch::Detail::unprintableString ? #matcher : matcherAsString ) \
.setOp( "matches" ) \
.setResultType( (matcher).match( arg ) ); \
__catchResult.captureExpression(); \
} catch( ... ) { \
__catchResult.useActiveException( resultDisposition | Catch::ResultDisposition::ContinueOnFailure ); \
} \
INTERNAL_CATCH_REACT( __catchResult ) \
} while( Catch::alwaysFalse() )
const std::string unprintableString
std::string toString(std::vector< T, Allocator > const &v)
Definition: catch.hpp:1713
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774

Definition at line 2161 of file catch.hpp.

◆ METHOD_AS_TEST_CASE

#define METHOD_AS_TEST_CASE (   method,
  name,
  description 
)    INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, name, description )

Definition at line 10468 of file catch.hpp.

◆ REGISTER_LEGACY_REPORTER

#define REGISTER_LEGACY_REPORTER (   name,
  reporterType 
)    INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType )

Definition at line 10477 of file catch.hpp.

◆ REGISTER_REPORTER

#define REGISTER_REPORTER (   name,
  reporterType 
)    INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType )

Definition at line 10476 of file catch.hpp.

◆ REGISTER_TEST_CASE

#define REGISTER_TEST_CASE (   method,
  name,
  description 
)    INTERNAL_CATCH_REGISTER_TESTCASE( method, name, description )

Definition at line 10469 of file catch.hpp.

◆ REQUIRE

#define REQUIRE (   expr)    INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "REQUIRE" )

Definition at line 10429 of file catch.hpp.

◆ REQUIRE_FALSE

#define REQUIRE_FALSE (   expr)    INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal | Catch::ResultDisposition::FalseTest, "REQUIRE_FALSE" )

Definition at line 10430 of file catch.hpp.

◆ REQUIRE_NOTHROW

#define REQUIRE_NOTHROW (   expr)    INTERNAL_CATCH_NO_THROW( expr, Catch::ResultDisposition::Normal, "REQUIRE_NOTHROW" )

Definition at line 10435 of file catch.hpp.

◆ REQUIRE_THAT

#define REQUIRE_THAT (   arg,
  matcher 
)    INTERNAL_CHECK_THAT( arg, matcher, Catch::ResultDisposition::Normal, "REQUIRE_THAT" )

Definition at line 10449 of file catch.hpp.

◆ REQUIRE_THROWS

#define REQUIRE_THROWS (   expr)    INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::Normal, "", "REQUIRE_THROWS" )

Definition at line 10432 of file catch.hpp.

◆ REQUIRE_THROWS_AS

#define REQUIRE_THROWS_AS (   expr,
  exceptionType 
)    INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::Normal, "REQUIRE_THROWS_AS" )

Definition at line 10433 of file catch.hpp.

◆ REQUIRE_THROWS_WITH

#define REQUIRE_THROWS_WITH (   expr,
  matcher 
)    INTERNAL_CATCH_THROWS( expr, Catch::ResultDisposition::Normal, matcher, "REQUIRE_THROWS_WITH" )

Definition at line 10434 of file catch.hpp.

◆ SCENARIO

#define SCENARIO (   name,
  tags 
)    TEST_CASE( "Scenario: " name, tags )

Definition at line 10490 of file catch.hpp.

◆ SCENARIO_METHOD

#define SCENARIO_METHOD (   className,
  name,
  tags 
)    INTERNAL_CATCH_TEST_CASE_METHOD( className, "Scenario: " name, tags )

Definition at line 10491 of file catch.hpp.

◆ SCOPED_CAPTURE

#define SCOPED_CAPTURE (   msg)    INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" )

Definition at line 10455 of file catch.hpp.

◆ SCOPED_INFO

#define SCOPED_INFO (   msg)    INTERNAL_CATCH_INFO( msg, "INFO" )

Definition at line 10453 of file catch.hpp.

◆ SECTION

#define SECTION (   name,
  description 
)    INTERNAL_CATCH_SECTION( name, description )

Definition at line 10470 of file catch.hpp.

◆ SUCCEED

#define SUCCEED (   msg)    INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, "SUCCEED", msg )

Definition at line 10472 of file catch.hpp.

◆ TEST_CASE

#define TEST_CASE (   name,
  description 
)    INTERNAL_CATCH_TESTCASE( name, description )

Definition at line 10466 of file catch.hpp.

◆ TEST_CASE_METHOD

#define TEST_CASE_METHOD (   className,
  name,
  description 
)    INTERNAL_CATCH_TEST_CASE_METHOD( className, name, description )

Definition at line 10467 of file catch.hpp.

◆ THEN

#define THEN (   desc)    SECTION( std::string(" Then: ") + desc, "" )

Definition at line 10496 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_APPROX_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_APPROX_HPP_INCLUDED

Definition at line 2619 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED

#define TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED

Definition at line 827 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_CAPTURE_HPP_INCLUDED

Definition at line 769 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_COMMON_H_INCLUDED

#define TWOBLUECUBES_CATCH_COMMON_H_INCLUDED

Definition at line 61 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED

Definition at line 85 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED

#define TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED

Definition at line 457 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED

#define TWOBLUECUBES_CATCH_DEBUGGER_H_INCLUDED

Definition at line 1993 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_EVALUATE_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_EVALUATE_HPP_INCLUDED

Definition at line 1289 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_EXPRESSION_LHS_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_EXPRESSION_LHS_HPP_INCLUDED

Definition at line 1286 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED

Definition at line 2336 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_HPP_INCLUDED

Definition at line 14 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_CAPTURE_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_CAPTURE_H_INCLUDED

Definition at line 1956 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED

Definition at line 2516 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_GENERATORS_H_INCLUDED

Definition at line 460 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_REGISTRY_HUB_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_REGISTRY_HUB_H_INCLUDED

Definition at line 2522 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_RUNNER_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_RUNNER_H_INCLUDED

Definition at line 2042 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED

Definition at line 2700 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED

#define TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED

Definition at line 609 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_MATCHERS_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_MATCHERS_HPP_INCLUDED

Definition at line 889 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED

#define TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED

Definition at line 1900 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED

#define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED

Definition at line 58 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_OPTION_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_OPTION_HPP_INCLUDED

Definition at line 2724 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED

#define TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED

Definition at line 1996 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_PTR_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_PTR_HPP_INCLUDED

Definition at line 484 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_RESULT_BUILDER_H_INCLUDED

#define TWOBLUECUBES_CATCH_RESULT_BUILDER_H_INCLUDED

Definition at line 772 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED

#define TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED

Definition at line 775 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_SECTION_H_INCLUDED

#define TWOBLUECUBES_CATCH_SECTION_H_INCLUDED

Definition at line 2179 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED

#define TWOBLUECUBES_CATCH_SECTION_INFO_H_INCLUDED

Definition at line 2182 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TAG_ALIAS_H_INCLUDED

#define TWOBLUECUBES_CATCH_TAG_ALIAS_H_INCLUDED

Definition at line 2703 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TEST_CASE_INFO_H_INCLUDED

#define TWOBLUECUBES_CATCH_TEST_CASE_INFO_H_INCLUDED

Definition at line 2803 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TEST_REGISTRY_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_TEST_REGISTRY_HPP_INCLUDED

Definition at line 606 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TIMER_H_INCLUDED

#define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED

Definition at line 2280 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TOSTRING_H_INCLUDED

#define TWOBLUECUBES_CATCH_TOSTRING_H_INCLUDED

Definition at line 1498 of file catch.hpp.

◆ TWOBLUECUBES_CATCH_TOTALS_HPP_INCLUDED

#define TWOBLUECUBES_CATCH_TOTALS_HPP_INCLUDED

Definition at line 2185 of file catch.hpp.

◆ WARN

Definition at line 10452 of file catch.hpp.

◆ WHEN

#define WHEN (   desc)    SECTION( std::string(" When: ") + desc, "" )

Definition at line 10494 of file catch.hpp.