Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
catch.hpp File Reference
#include <iosfwd>
#include <string>
#include <cstdint>
#include <vector>
#include <cstddef>
#include <cassert>
#include <type_traits>
#include <ostream>
#include <ctime>
#include <ratio>
#include <chrono>
#include <memory>
#include <exception>
#include <functional>
#include <algorithm>
#include <utility>
#include <random>
#include <map>
#include <set>
#include <cstring>
#include <cfloat>
#include <cstdio>
#include <cmath>
#include <limits>
#include <signal.h>
#include <sstream>
#include <cctype>
#include <fstream>
#include <unistd.h>
#include <stdexcept>
#include <cerrno>
#include <iomanip>
#include <cstdlib>
#include <regex>
#include <stack>
#include <ios>
#include <iterator>
#include <iostream>
Include dependency graph for catch.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Catch::always_false< T >
 
class  Catch::Detail::Approx
 
struct  Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >
 
struct  Catch::Generators::as< T >
 
class  Catch::AssertionHandler
 
struct  Catch::AssertionInfo
 
struct  Catch::AssertionReaction
 
struct  Catch::AutoReg
 
class  Catch::BinaryExpr< LhsT, RhsT >
 
class  Catch::Capturer
 
struct  Catch::Matchers::StdString::CasedString
 
struct  Catch::CaseSensitive
 
struct  Catch_global_namespace_dummy
 
class  Catch::Generators::ChunkGenerator< T >
 
struct  Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >
 
struct  Catch::Matchers::Vector::ContainsMatcher< T, AllocComp, AllocMatch >
 
struct  Catch::Matchers::StdString::ContainsMatcher
 
struct  Catch::Counts
 
struct  Catch::Decomposer
 
struct  Catch::Matchers::StdString::EndsWithMatcher
 
struct  Catch::Detail::EnumInfo
 
struct  Catch::Matchers::Vector::EqualsMatcher< T, AllocComp, AllocMatch >
 
struct  Catch::Matchers::StdString::EqualsMatcher
 
class  Catch::Matchers::Exception::ExceptionMessageMatcher
 
class  Catch::ExceptionTranslatorRegistrar::ExceptionTranslator< T >
 
class  Catch::ExceptionTranslatorRegistrar
 
class  Catch::ExprLhs< LhsT >
 
class  Catch::Generators::FilterGenerator< T, Predicate >
 
class  Catch::Generators::FixedValuesGenerator< T >
 
class  Catch::GeneratorException
 
class  Catch::Generators::Generators< T >
 
class  Catch::Generators::GeneratorUntypedBase
 
class  Catch::Generators::GeneratorWrapper< T >
 
struct  Catch::IConfig
 
struct  Catch::IContext
 
struct  Catch::IExceptionTranslator
 
struct  Catch::IExceptionTranslatorRegistry
 
struct  Catch::Generators::IGenerator< T >
 
struct  Catch::IGeneratorTracker
 
struct  Catch::IMutableContext
 
struct  Catch::IMutableEnumValuesRegistry
 
struct  Catch::IMutableRegistryHub
 
struct  Catch::IRegistryHub
 
struct  Catch::IResultCapture
 
struct  Catch::IRunner
 
struct  Catch::is_callable< T >
 
struct  Catch::is_callable< Fun(Args...)>
 
struct  Catch::is_callable_tester
 
struct  Catch::is_range< T >
 
class  Catch::Detail::IsStreamInsertable< T >
 
struct  Catch::IStream
 
class  Catch::Generators::IteratorGenerator< T >
 
struct  Catch::ITestCaseRegistry
 
struct  Catch::ITestInvoker
 
struct  Catch::ITransientExpression
 
class  Catch::LazyExpression
 
class  Catch::Generators::MapGenerator< T, U, Func >
 
struct  Catch::Matchers::Impl::MatchAllOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchAllOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchAnyOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchAnyOf< ArgT >
 
struct  Catch::Matchers::Impl::MatcherBase< T >
 
struct  Catch::Matchers::Impl::MatcherMethod< ObjectT >
 
class  Catch::Matchers::Impl::MatcherUntypedBase
 
class  Catch::MatchExpr< ArgT, MatcherT >
 
struct  Catch::Matchers::Impl::MatchNotOf< ArgT >
 
struct  Catch::Matchers::Impl::MatchNotOf< ArgT >
 
struct  Catch::MessageBuilder
 
struct  Catch::MessageInfo
 
struct  Catch::MessageStream
 
struct  Catch::NameAndTags
 
class  Catch::NonCopyable
 
struct  Catch::not_this_one
 
class  Catch::Option< T >
 
struct  Catch::pluralise
 
class  Catch::Matchers::Generic::PredicateMatcher< T >
 
class  Catch::Generators::RandomFloatingGenerator< Float >
 
class  Catch::Generators::RandomIntegerGenerator< Integer >
 
class  Catch::Generators::RangeGenerator< T >
 
struct  Catch::Matchers::StdString::RegexMatcher
 
struct  Catch::RegistrarForTagAliases
 
class  Catch::Generators::RepeatGenerator< T >
 
struct  Catch::ResultDisposition
 
struct  Catch::ResultWas
 
class  Catch::ReusableStringStream
 
struct  Catch::RunTests
 
class  Catch::ScopedMessage
 
class  Catch::Section
 
struct  Catch::SectionEndInfo
 
struct  Catch::SectionInfo
 
struct  Catch::ShowDurations
 
class  Catch::SimplePcg32
 
class  Catch::Generators::SingleValueGenerator< T >
 
struct  Catch::SourceLineInfo
 
struct  Catch::Matchers::StdString::StartsWithMatcher
 
struct  Catch::StreamEndStop
 
struct  Catch::StringMaker< T, typename >
 
struct  Catch::StringMaker< bool >
 
struct  Catch::StringMaker< Catch::Detail::Approx >
 
struct  Catch::StringMaker< char * >
 
struct  Catch::StringMaker< char >
 
struct  Catch::StringMaker< char const * >
 
struct  Catch::StringMaker< char[SZ]>
 
struct  Catch::StringMaker< double >
 
struct  Catch::StringMaker< float >
 
struct  Catch::StringMaker< int >
 
struct  Catch::StringMaker< long >
 
struct  Catch::StringMaker< long long >
 
struct  Catch::StringMaker< R C::* >
 
struct  Catch::StringMaker< R, typename std::enable_if< is_range< R >::value &&!::Catch::Detail::IsStreamInsertable< R >::value >::type >
 
struct  Catch::StringMaker< signed char >
 
struct  Catch::StringMaker< signed char[SZ]>
 
struct  Catch::StringMaker< std::nullptr_t >
 
struct  Catch::StringMaker< std::string >
 
struct  Catch::StringMaker< std::wstring >
 
struct  Catch::StringMaker< T * >
 
struct  Catch::StringMaker< T[SZ]>
 
struct  Catch::StringMaker< unsigned char >
 
struct  Catch::StringMaker< unsigned char[SZ]>
 
struct  Catch::StringMaker< unsigned int >
 
struct  Catch::StringMaker< unsigned long >
 
struct  Catch::StringMaker< unsigned long long >
 
struct  Catch::StringMaker< wchar_t * >
 
struct  Catch::StringMaker< wchar_t const * >
 
struct  Catch::Matchers::StdString::StringMatcherBase
 
class  Catch::StringRef
 
class  Catch::Generators::TakeGenerator< T >
 
class  Catch::TestCase
 
struct  Catch::TestCaseInfo
 
struct  Catch::TestFailureException
 
class  Catch::TestInvokerAsMethod< C >
 
class  Catch::Timer
 
struct  Catch::Totals
 
struct  Catch::true_given< typename >
 
class  Catch::UnaryExpr< LhsT >
 
struct  Catch::Matchers::Vector::UnorderedEqualsMatcher< T, AllocComp, AllocMatch >
 
struct  Catch::UseColour
 
struct  Catch::WaitForKeypress
 
struct  Catch::WarnAbout
 
struct  Catch::Matchers::Floating::WithinAbsMatcher
 
struct  Catch::Matchers::Floating::WithinRelMatcher
 
struct  Catch::Matchers::Floating::WithinUlpsMatcher
 

Namespaces

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

Macros

#define AND_GIVEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( "And given: " << desc )
 
#define AND_THEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( " And: " << desc )
 
#define AND_WHEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( " And when: " << desc )
 
#define ANON_TEST_CASE()   INTERNAL_CATCH_TESTCASE()
 
#define CAPTURE(...)   INTERNAL_CATCH_CAPTURE( INTERNAL_CATCH_UNIQUE_NAME(capturer), "CAPTURE",__VA_ARGS__ )
 
#define CATCH_CATCH_ALL   if ((false))
 
#define CATCH_CATCH_ANON(type)   if ((false))
 
#define CATCH_CONFIG_COUNTER
 
#define CATCH_CONFIG_CPP11_TO_STRING
 
#define CATCH_CONFIG_DISABLE_EXCEPTIONS
 
#define CATCH_CONFIG_GLOBAL_NEXTAFTER
 
#define CATCH_CONFIG_POSIX_SIGNALS
 
#define CATCH_CONFIG_WCHAR
 
#define CATCH_DEFER(id)   id CATCH_EMPTY()
 
#define CATCH_EMPTY()
 
#define CATCH_ENFORCE(condition, ...)   do{ if( !(condition) ) CATCH_ERROR( __VA_ARGS__ ); } while(false)
 
#define CATCH_ERROR(...)   Catch::throw_domain_error(CATCH_MAKE_MSG( __VA_ARGS__ ))
 
#define CATCH_INTERNAL_CONFIG_COUNTER
 
#define CATCH_INTERNAL_CONFIG_GLOBAL_NEXTAFTER
 
#define CATCH_INTERNAL_CONFIG_POSIX_SIGNALS
 
#define CATCH_INTERNAL_ERROR(...)   Catch::throw_logic_error(CATCH_MAKE_MSG( CATCH_INTERNAL_LINEINFO << ": Internal Catch2 error: " << __VA_ARGS__))
 
#define CATCH_INTERNAL_IGNORE_BUT_WARN(...)
 
#define CATCH_INTERNAL_LINEINFO   ::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) )
 
#define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION
 
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
 
#define CATCH_INTERNAL_STRINGIFY(...)   #__VA_ARGS__
 
#define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS
 
#define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS
 
#define CATCH_MAKE_MSG(...)   (Catch::ReusableStringStream() << __VA_ARGS__).str()
 
#define CATCH_REC_END(...)
 
#define CATCH_REC_GET_END(...)   CATCH_REC_GET_END1
 
#define CATCH_REC_GET_END1(...)   CATCH_REC_GET_END2
 
#define CATCH_REC_GET_END2()   0, CATCH_REC_END
 
#define CATCH_REC_LIST(f, ...)   CATCH_RECURSE(CATCH_REC_LIST2(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0))
 
#define CATCH_REC_LIST0(f, x, peek, ...)   , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST0_UD(f, userdata, x, peek, ...)   , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST1(f, x, peek, ...)   , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0) ) ( f, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST1_UD(f, userdata, x, peek, ...)   , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0_UD) ) ( f, userdata, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST2(f, x, peek, ...)   f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST2_UD(f, userdata, x, peek, ...)   f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ )
 
#define CATCH_REC_LIST_UD(f, userdata, ...)   CATCH_RECURSE(CATCH_REC_LIST2_UD(f, userdata, __VA_ARGS__, ()()(), ()()(), ()()(), 0))
 
#define CATCH_REC_NEXT(test, next)   CATCH_REC_NEXT1(CATCH_REC_GET_END test, next)
 
#define CATCH_REC_NEXT0(test, next, ...)   next CATCH_REC_OUT
 
#define CATCH_REC_NEXT1(test, next)   CATCH_DEFER ( CATCH_REC_NEXT0 ) ( test, next, 0)
 
#define CATCH_REC_OUT
 
#define CATCH_RECURSE(...)   CATCH_RECURSION_LEVEL5(__VA_ARGS__)
 
#define CATCH_RECURSION_LEVEL0(...)   __VA_ARGS__
 
#define CATCH_RECURSION_LEVEL1(...)   CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__)))
 
#define CATCH_RECURSION_LEVEL2(...)   CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__)))
 
#define CATCH_RECURSION_LEVEL3(...)   CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(__VA_ARGS__)))
 
#define CATCH_RECURSION_LEVEL4(...)   CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(__VA_ARGS__)))
 
#define CATCH_RECURSION_LEVEL5(...)   CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(__VA_ARGS__)))
 
#define CATCH_REGISTER_ENUM(enumName, ...)   INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )
 
#define CATCH_REGISTER_TAG_ALIAS(alias, spec)
 
#define CATCH_RUNTIME_ERROR(...)   Catch::throw_runtime_error(CATCH_MAKE_MSG( __VA_ARGS__ ))
 
#define CATCH_TRANSLATE_EXCEPTION(signature)   INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )
 
#define CATCH_TRY   if ((true))
 
#define CATCH_VERSION_MAJOR   2
 
#define CATCH_VERSION_MINOR   12
 
#define CATCH_VERSION_PATCH   1
 
#define CHECK(...)   INTERNAL_CATCH_TEST( "CHECK", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define CHECK_FALSE(...)   INTERNAL_CATCH_TEST( "CHECK_FALSE", Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::FalseTest, __VA_ARGS__ )
 
#define CHECK_NOFAIL(...)   INTERNAL_CATCH_TEST( "CHECK_NOFAIL", Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, __VA_ARGS__ )
 
#define CHECK_NOTHROW(...)   INTERNAL_CATCH_NO_THROW( "CHECK_NOTHROW", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define CHECK_THAT(arg, matcher)   INTERNAL_CHECK_THAT( "CHECK_THAT", matcher, Catch::ResultDisposition::ContinueOnFailure, arg )
 
#define CHECK_THROWS(...)   INTERNAL_CATCH_THROWS( "CHECK_THROWS", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define CHECK_THROWS_AS(expr, exceptionType)   INTERNAL_CATCH_THROWS_AS( "CHECK_THROWS_AS", exceptionType, Catch::ResultDisposition::ContinueOnFailure, expr )
 
#define CHECK_THROWS_MATCHES(expr, exceptionType, matcher)   INTERNAL_CATCH_THROWS_MATCHES( "CHECK_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::ContinueOnFailure, matcher, expr )
 
#define CHECK_THROWS_WITH(expr, matcher)   INTERNAL_CATCH_THROWS_STR_MATCHES( "CHECK_THROWS_WITH", Catch::ResultDisposition::ContinueOnFailure, matcher, expr )
 
#define CHECKED_ELSE(...)   INTERNAL_CATCH_ELSE( "CHECKED_ELSE", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define CHECKED_IF(...)   INTERNAL_CATCH_IF( "CHECKED_IF", Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define DYNAMIC_SECTION(...)   INTERNAL_CATCH_DYNAMIC_SECTION( __VA_ARGS__ )
 
#define FAIL(...)   INTERNAL_CATCH_MSG( "FAIL", Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, __VA_ARGS__ )
 
#define FAIL_CHECK(...)   INTERNAL_CATCH_MSG( "FAIL_CHECK", Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define GENERATE(...)   Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 
#define GENERATE_COPY(...)   Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 
#define GENERATE_REF(...)   Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 
#define GIVEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( " Given: " << desc )
 
#define INFO(msg)   INTERNAL_CATCH_INFO( "INFO", msg )
 
#define INTERNAL_CATCH_CAPTURE(varName, macroName, ...)
 
#define INTERNAL_CATCH_CATCH(capturer)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST(TestName, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_DECLARE_SIG_TEST_X,INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X,INTERNAL_CATCH_DECLARE_SIG_TEST_X,INTERNAL_CATCH_DECLARE_SIG_TEST_X, INTERNAL_CATCH_DECLARE_SIG_TEST1, INTERNAL_CATCH_DECLARE_SIG_TEST0)(TestName, __VA_ARGS__)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST0(TestName)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST1(TestName, signature)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD(TestName, ClassName, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD1, INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD0)(TestName, ClassName, __VA_ARGS__)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD0(TestName, ClassName)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD1(TestName, ClassName, signature)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X(TestName, ClassName, signature, ...)
 
#define INTERNAL_CATCH_DECLARE_SIG_TEST_X(TestName, signature, ...)
 
#define INTERNAL_CATCH_DEF(...)   INTERNAL_CATCH_DEF __VA_ARGS__
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST(TestName, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X, INTERNAL_CATCH_DEFINE_SIG_TEST_X,INTERNAL_CATCH_DEFINE_SIG_TEST_X,INTERNAL_CATCH_DEFINE_SIG_TEST1, INTERNAL_CATCH_DEFINE_SIG_TEST0)(TestName, __VA_ARGS__)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST0(TestName)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST1(TestName, signature)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD(TestName, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X,INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD1, INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD0)(TestName, __VA_ARGS__)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD0(TestName)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD1(TestName, signature)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X(TestName, signature, ...)
 
#define INTERNAL_CATCH_DEFINE_SIG_TEST_X(TestName, signature, ...)
 
#define INTERNAL_CATCH_DYNAMIC_SECTION(...)
 
#define INTERNAL_CATCH_ELSE(macroName, resultDisposition, ...)
 
#define INTERNAL_CATCH_EXPAND1(param)   INTERNAL_CATCH_EXPAND2(param)
 
#define INTERNAL_CATCH_EXPAND2(...)   INTERNAL_CATCH_NO## __VA_ARGS__
 
#define INTERNAL_CATCH_IF(macroName, resultDisposition, ...)
 
#define INTERNAL_CATCH_INFO(macroName, log)   Catch::ScopedMessage INTERNAL_CATCH_UNIQUE_NAME( scopedMessage )( Catch::MessageBuilder( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log );
 
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)   INTERNAL_CATCH_MAKE_NAMESPACE2(name)
 
#define INTERNAL_CATCH_MAKE_NAMESPACE2(...)   ns_##__VA_ARGS__
 
#define INTERNAL_CATCH_MAKE_TYPE_LIST(...)   INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__))
 
#define INTERNAL_CATCH_MAKE_TYPE_LIST2(...)   decltype(get_wrapper<INTERNAL_CATCH_REMOVE_PARENS_GEN(__VA_ARGS__)>())
 
#define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(...)   CATCH_REC_LIST(INTERNAL_CATCH_MAKE_TYPE_LIST,__VA_ARGS__)
 
#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_NTTP_0
 
#define INTERNAL_CATCH_NTTP_1(signature, ...)
 
#define INTERNAL_CATCH_NTTP_GEN(...)   INTERNAL_CATCH_VA_NARGS_IMPL(__VA_ARGS__, INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__),INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_0)
 
#define INTERNAL_CATCH_NTTP_REG_GEN(TestFunc, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER, INTERNAL_CATCH_NTTP_REGISTER0, INTERNAL_CATCH_NTTP_REGISTER0)(TestFunc, __VA_ARGS__)
 
#define INTERNAL_CATCH_NTTP_REG_METHOD_GEN(TestName, ...)   INTERNAL_CATCH_VA_NARGS_IMPL( "dummy", __VA_ARGS__, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD, INTERNAL_CATCH_NTTP_REGISTER_METHOD0, INTERNAL_CATCH_NTTP_REGISTER_METHOD0)(TestName, __VA_ARGS__)
 
#define INTERNAL_CATCH_NTTP_REGISTER(TestFunc, signature, ...)
 
#define INTERNAL_CATCH_NTTP_REGISTER0(TestFunc, signature)
 
#define INTERNAL_CATCH_NTTP_REGISTER_METHOD(TestName, signature, ...)
 
#define INTERNAL_CATCH_NTTP_REGISTER_METHOD0(TestName, signature, ...)
 
#define INTERNAL_CATCH_REACT(handler)   handler.complete();
 
#define INTERNAL_CATCH_REGISTER_ENUM(enumName, ...)
 
#define INTERNAL_CATCH_REGISTER_TESTCASE(Function, ...)
 
#define INTERNAL_CATCH_REMOVE_PARENS(...)   INTERNAL_CATCH_EXPAND1(INTERNAL_CATCH_DEF __VA_ARGS__)
 
#define INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9)
 
#define INTERNAL_CATCH_REMOVE_PARENS_11_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10)
 
#define INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_0)   INTERNAL_CATCH_REMOVE_PARENS(_0)
 
#define INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_0, _1)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_1)
 
#define INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_0, _1, _2)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_1, _2)
 
#define INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_0, _1, _2, _3)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_1, _2, _3)
 
#define INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_0, _1, _2, _3, _4)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_1, _2, _3, _4)
 
#define INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_0, _1, _2, _3, _4, _5)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_1, _2, _3, _4, _5)
 
#define INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_0, _1, _2, _3, _4, _5, _6)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_1, _2, _4, _5, _6)
 
#define INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_0, _1, _2, _3, _4, _5, _6, _7)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_1, _2, _3, _4, _5, _6, _7)
 
#define INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_0, _1, _2, _3, _4, _5, _6, _7, _8)   INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_1, _2, _3, _4, _5, _6, _7, _8)
 
#define INTERNAL_CATCH_REMOVE_PARENS_GEN(...)   INTERNAL_CATCH_VA_NARGS_IMPL(__VA_ARGS__, INTERNAL_CATCH_REMOVE_PARENS_11_ARG,INTERNAL_CATCH_REMOVE_PARENS_10_ARG,INTERNAL_CATCH_REMOVE_PARENS_9_ARG,INTERNAL_CATCH_REMOVE_PARENS_8_ARG,INTERNAL_CATCH_REMOVE_PARENS_7_ARG,INTERNAL_CATCH_REMOVE_PARENS_6_ARG,INTERNAL_CATCH_REMOVE_PARENS_5_ARG,INTERNAL_CATCH_REMOVE_PARENS_4_ARG,INTERNAL_CATCH_REMOVE_PARENS_3_ARG,INTERNAL_CATCH_REMOVE_PARENS_2_ARG,INTERNAL_CATCH_REMOVE_PARENS_1_ARG)(__VA_ARGS__)
 
#define INTERNAL_CATCH_SECTION(...)
 
#define INTERNAL_CATCH_STRINGIZE(...)   INTERNAL_CATCH_STRINGIZE2(__VA_ARGS__)
 
#define INTERNAL_CATCH_STRINGIZE2(...)   #__VA_ARGS__
 
#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param)   INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param))
 
#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE(Name, Tags, TmplList)   INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, TmplList )
 
#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_2(TestName, TestFunc, Name, Tags, TmplList)
 
#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD(ClassName, Name, Tags, TmplList)   INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, TmplList )
 
#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD_2(TestNameClass, TestName, ClassName, Name, Tags, TmplList)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE(Name, Tags, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, typename T,__VA_ARGS__)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(TestName, TestFuncName, Name, Tags, Signature, TmplTypes, TypesList)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD(ClassName, Name, Tags, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, typename T, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2(TestNameClass, TestName, ClassName, Name, Tags, Signature, TmplTypes, TypesList)
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG(ClassName, Name, Tags, Signature, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, Signature, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_SIG(Name, Tags, Signature, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, Signature, __VA_ARGS__)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE(Name, Tags, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, typename TestType, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_2(TestName, TestFunc, Name, Tags, Signature, ...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD(ClassName, Name, Tags, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____C_L_A_S_S____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, typename T, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2(TestNameClass, TestName, ClassName, Name, Tags, Signature, ...)
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_SIG(ClassName, Name, Tags, Signature, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____C_L_A_S_S____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, Signature, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_SIG(Name, Tags, Signature, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, Signature, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEST(macroName, resultDisposition, ...)
 
#define INTERNAL_CATCH_TEST_CASE_METHOD(ClassName, ...)   INTERNAL_CATCH_TEST_CASE_METHOD2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), ClassName, __VA_ARGS__ )
 
#define INTERNAL_CATCH_TEST_CASE_METHOD2(TestName, ClassName, ...)
 
#define INTERNAL_CATCH_TESTCASE(...)   INTERNAL_CATCH_TESTCASE2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), __VA_ARGS__ )
 
#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)   INTERNAL_CATCH_TRANSLATE_EXCEPTION2( INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionTranslator ), signature )
 
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2(translatorName, signature)
 
#define INTERNAL_CATCH_TRY
 
#define INTERNAL_CATCH_TYPE_GEN
 
#define INTERNAL_CATCH_UNIQUE_NAME(name)   INTERNAL_CATCH_UNIQUE_NAME_LINE( name, __COUNTER__ )
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE(name, line)   INTERNAL_CATCH_UNIQUE_NAME_LINE2( name, line )
 
#define INTERNAL_CATCH_UNIQUE_NAME_LINE2(name, line)   name##line
 
#define INTERNAL_CATCH_UNSCOPED_INFO(macroName, log)   Catch::getResultCapture().emplaceUnscopedMessage( Catch::MessageBuilder( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log )
 
#define INTERNAL_CATCH_VA_NARGS_IMPL(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, N, ...)   N
 
#define INTERNAL_CHECK_THAT(macroName, matcher, resultDisposition, arg)
 
#define METHOD_AS_TEST_CASE(method, ...)   INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, __VA_ARGS__ )
 
#define REGISTER_TEST_CASE(Function, ...)   INTERNAL_CATCH_REGISTER_TESTCASE( Function, __VA_ARGS__ )
 
#define REQUIRE(...)   INTERNAL_CATCH_TEST( "REQUIRE", Catch::ResultDisposition::Normal, __VA_ARGS__ )
 
#define REQUIRE_FALSE(...)   INTERNAL_CATCH_TEST( "REQUIRE_FALSE", Catch::ResultDisposition::Normal | Catch::ResultDisposition::FalseTest, __VA_ARGS__ )
 
#define REQUIRE_NOTHROW(...)   INTERNAL_CATCH_NO_THROW( "REQUIRE_NOTHROW", Catch::ResultDisposition::Normal, __VA_ARGS__ )
 
#define REQUIRE_THAT(arg, matcher)   INTERNAL_CHECK_THAT( "REQUIRE_THAT", matcher, Catch::ResultDisposition::Normal, arg )
 
#define REQUIRE_THROWS(...)   INTERNAL_CATCH_THROWS( "REQUIRE_THROWS", Catch::ResultDisposition::Normal, __VA_ARGS__ )
 
#define REQUIRE_THROWS_AS(expr, exceptionType)   INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exceptionType, Catch::ResultDisposition::Normal, expr )
 
#define REQUIRE_THROWS_MATCHES(expr, exceptionType, matcher)   INTERNAL_CATCH_THROWS_MATCHES( "REQUIRE_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::Normal, matcher, expr )
 
#define REQUIRE_THROWS_WITH(expr, matcher)   INTERNAL_CATCH_THROWS_STR_MATCHES( "REQUIRE_THROWS_WITH", Catch::ResultDisposition::Normal, matcher, expr )
 
#define SCENARIO(...)   TEST_CASE( "Scenario: " __VA_ARGS__ )
 
#define SCENARIO_METHOD(className, ...)   INTERNAL_CATCH_TEST_CASE_METHOD( className, "Scenario: " __VA_ARGS__ )
 
#define SECTION(...)   INTERNAL_CATCH_SECTION( __VA_ARGS__ )
 
#define STATIC_REQUIRE(...)   static_assert( __VA_ARGS__, #__VA_ARGS__ ); SUCCEED( #__VA_ARGS__ )
 
#define STATIC_REQUIRE_FALSE(...)   static_assert( !(__VA_ARGS__), "!(" #__VA_ARGS__ ")" ); SUCCEED( "!(" #__VA_ARGS__ ")" )
 
#define SUCCEED(...)   INTERNAL_CATCH_MSG( "SUCCEED", Catch::ResultWas::Ok, Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )
 
#define TEMPLATE_LIST_TEST_CASE(...)   INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE(__VA_ARGS__)
 
#define TEMPLATE_LIST_TEST_CASE_METHOD(className, ...)   INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD( className, __VA_ARGS__ )
 
#define TEMPLATE_PRODUCT_TEST_CASE(...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE( __VA_ARGS__ )
 
#define TEMPLATE_PRODUCT_TEST_CASE_METHOD(className, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD( className, __VA_ARGS__ )
 
#define TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG(className, ...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG( className, __VA_ARGS__ )
 
#define TEMPLATE_PRODUCT_TEST_CASE_SIG(...)   INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_SIG( __VA_ARGS__ )
 
#define TEMPLATE_TEST_CASE(...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE( __VA_ARGS__ )
 
#define TEMPLATE_TEST_CASE_METHOD(className, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD( className, __VA_ARGS__ )
 
#define TEMPLATE_TEST_CASE_METHOD_SIG(className, ...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_SIG( className, __VA_ARGS__ )
 
#define TEMPLATE_TEST_CASE_SIG(...)   INTERNAL_CATCH_TEMPLATE_TEST_CASE_SIG( __VA_ARGS__ )
 
#define TEST_CASE(...)   INTERNAL_CATCH_TESTCASE( __VA_ARGS__ )
 
#define TEST_CASE_METHOD(className, ...)   INTERNAL_CATCH_TEST_CASE_METHOD( className, __VA_ARGS__ )
 
#define THEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( " Then: " << desc )
 
#define UNSCOPED_INFO(msg)   INTERNAL_CATCH_UNSCOPED_INFO( "UNSCOPED_INFO", msg )
 
#define WARN(msg)   INTERNAL_CATCH_MSG( "WARN", Catch::ResultWas::Warning, Catch::ResultDisposition::ContinueOnFailure, msg )
 
#define WHEN(desc)   INTERNAL_CATCH_DYNAMIC_SECTION( " When: " << desc )
 

Typedefs

using Catch::exceptionTranslateFunction) = std::string(*)(
 
using Catch::ExceptionTranslators = std::vector< std::unique_ptr< IExceptionTranslator const >>
 
template<typename Func , typename U >
using Catch::FunctionReturnType = typename std::remove_reference< typename std::remove_cv< typename std::result_of< Func(U)>::type >::type >::type
 
using Catch::Generators::GeneratorBasePtr = std::unique_ptr< GeneratorUntypedBase >
 
using Catch::IConfigPtr = std::shared_ptr< IConfig const >
 
using Catch::IReporterFactoryPtr = std::shared_ptr< IReporterFactory >
 
using Catch::StringMatcher = Matchers::Impl::MatcherBase< std::string >
 

Enumerations

enum  Catch::Verbosity { Catch::Verbosity::Quiet = 0, Catch::Verbosity::Normal, Catch::Verbosity::High }
 

Functions

auto Catch::Generators::acquireGeneratorTracker (SourceLineInfo const &lineInfo) -> IGeneratorTracker &
 
template<typename T , typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ApproxMatcher< T, AllocComp, AllocMatch > Catch::Matchers::Approx (std::vector< T, AllocComp > const &comparator)
 
std::ostream & Catch::cerr ()
 
template<typename T >
GeneratorWrapper< std::vector< T > > Catch::Generators::chunk (size_t size, GeneratorWrapper< T > &&generator)
 
void Catch::cleanUp ()
 
void Catch::cleanUpContext ()
 
std::ostream & Catch::clog ()
 
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
 
bool Catch::contains (std::string const &s, std::string const &infix)
 
StdString::ContainsMatcher Catch::Matchers::Contains (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
template<typename T , typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::ContainsMatcher< T, AllocComp, AllocMatch > Catch::Matchers::Contains (std::vector< T, AllocComp > const &comparator)
 
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)
 
std::ostream & Catch::cout ()
 
bool Catch::endsWith (std::string const &s, std::string const &suffix)
 
bool Catch::endsWith (std::string const &s, char suffix)
 
StdString::EndsWithMatcher Catch::Matchers::EndsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
StdString::EqualsMatcher Catch::Matchers::Equals (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
template<typename T , typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::EqualsMatcher< T, AllocComp, AllocMatch > Catch::Matchers::Equals (std::vector< T, AllocComp > const &comparator)
 
template<typename T , typename Predicate >
GeneratorWrapper< T > Catch::Generators::filter (Predicate &&pred, GeneratorWrapper< T > &&generator)
 
std::vector< TestCase > Catch::filterTests (std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config)
 
std::string Catch::Matchers::Generic::Detail::finalizeDescription (const std::string &desc)
 
void Catch::formatReconstructedExpression (std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs)
 
template<typename InputIterator , typename InputSentinel , typename ResultType = typename std::iterator_traits<InputIterator>::value_type>
GeneratorWrapper< ResultType > Catch::Generators::from_range (InputIterator from, InputSentinel to)
 
template<typename Container , typename ResultType = typename Container::value_type>
GeneratorWrapper< ResultType > Catch::Generators::from_range (Container const &cnt)
 
template<typename L >
auto Catch::Generators::generate (SourceLineInfo const &lineInfo, L const &generatorExpression) -> decltype(std::declval< decltype(generatorExpression())>().get())
 
std::vector< TestCase > const & Catch::getAllTestCasesSorted (IConfig const &config)
 
IContext & Catch::getCurrentContext ()
 
IMutableContext & Catch::getCurrentMutableContext ()
 
auto Catch::getCurrentNanosecondsSinceEpoch () -> uint64_t
 
auto Catch::getEstimatedClockResolution () -> uint64_t
 
IMutableRegistryHub & Catch::getMutableRegistryHub ()
 
IRegistryHub const & Catch::getRegistryHub ()
 
IResultCapture & Catch::getResultCapture ()
 
void Catch::handleExceptionMatchExpr (AssertionHandler &handler, std::string const &str, StringRef const &matcherString)
 
void Catch::handleExceptionMatchExpr (AssertionHandler &handler, StringMatcher const &matcher, StringRef const &matcherString)
 
void Catch::handleExpression (ITransientExpression const &expr)
 
template<typename T >
void Catch::handleExpression (ExprLhs< T > const &expr)
 
bool Catch::isFalseTest (int flags)
 
bool Catch::isJustInfo (int flags)
 
bool Catch::isOk (ResultWas::OfType resultType)
 
bool Catch::isThrowSafe (TestCase const &testCase, IConfig const &config)
 
template<typename T , typename... Args>
std::unique_ptr< T > Catch::Generators::pf::make_unique (Args &&...args)
 
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 >
 
template<typename ArgT , typename MatcherT >
auto Catch::makeMatchExpr (ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT >
 
auto Catch::makeStream (StringRef const &filename) -> IStream const *
 
TestCase Catch::makeTestCase (ITestInvoker *testCase, std::string const &className, NameAndTags const &nameAndTags, SourceLineInfo const &lineInfo)
 
auto Catch::makeTestInvoker (void(*testAsFunction)()) noexcept-> ITestInvoker *
 
template<typename C >
auto Catch::makeTestInvoker (void(C::*testAsMethod)()) noexcept-> ITestInvoker *
 
template<typename Func , typename U , typename T = FunctionReturnType<Func, U>>
GeneratorWrapper< T > Catch::Generators::map (Func &&function, GeneratorWrapper< U > &&generator)
 
StdString::RegexMatcher Catch::Matchers::Matches (std::string const &regex, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
bool Catch::matchTest (TestCase const &testCase, TestSpec const &testSpec, IConfig const &config)
 
Exception::ExceptionMessageMatcher Catch::Matchers::Message (std::string const &message)
 
Detail::Approx Catch::literals::operator""_a (long double val)
 
Detail::Approx Catch::literals::operator""_a (unsigned long long val)
 
constexpr auto operator""_catch_sr (char const *rawChars, std::size_t size) noexcept-> Catch::StringRef
 
constexpr auto Catch::operator""_sr (char const *rawChars, std::size_t size) noexcept-> StringRef
 
template<typename T >
T const & Catch::operator+ (T const &value, StreamEndStop)
 
auto Catch::operator+= (std::string &lhs, StringRef const &sr) -> std::string &
 
std::ostream & operator<< (std::ostream &, Catch_global_namespace_dummy)
 
std::ostream & Catch::operator<< (std::ostream &os, SourceLineInfo const &info)
 
auto Catch::operator<< (std::ostream &os, StringRef const &sr) -> std::ostream &
 
ResultDisposition::Flags Catch::operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs)
 
template<typename T >
Generic::PredicateMatcher< T > Catch::Matchers::Predicate (std::function< bool(T const &)> const &predicate, std::string const &description="")
 
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)
 
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)
 
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 T >
GeneratorWrapper< T > Catch::Generators::repeat (size_t repeats, GeneratorWrapper< T > &&generator)
 
bool Catch::replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis)
 
SimplePcg32 & Catch::rng ()
 
unsigned int Catch::rngSeed ()
 
bool Catch::shouldContinueOnFailure (int flags)
 
bool Catch::shouldSuppressFailure (int flags)
 
std::vector< StringRef > Catch::splitStringRef (StringRef str, char delimiter)
 
bool Catch::startsWith (std::string const &s, std::string const &prefix)
 
bool Catch::startsWith (std::string const &s, char prefix)
 
StdString::StartsWithMatcher Catch::Matchers::StartsWith (std::string const &str, CaseSensitive::Choice caseSensitivity=CaseSensitive::Yes)
 
template<typename T >
std::string Catch::Detail::stringify (const T &e)
 
template<typename... Ts>
GeneratorWrapper< std::tuple< Ts... > > Catch::Generators::table (std::initializer_list< std::tuple< typename std::decay< Ts >::type... >> tuples)
 
template<typename T >
GeneratorWrapper< T > Catch::Generators::take (size_t target, GeneratorWrapper< T > &&generator)
 
void Catch::throw_domain_error (std::string const &msg)
 
void Catch::throw_exception (std::exception const &e)
 
void Catch::throw_logic_error (std::string const &msg)
 
void Catch::throw_runtime_error (std::string const &msg)
 
std::string Catch::toLower (std::string const &s)
 
void Catch::toLowerInPlace (std::string &s)
 
std::string Catch::translateActiveException ()
 
std::string Catch::trim (std::string const &str)
 Returns a new string without whitespace at the start/end. More...
 
StringRef Catch::trim (StringRef ref)
 Returns a substring of the original ref without whitespace. Beware lifetimes! More...
 
template<typename T , typename AllocComp = std::allocator<T>, typename AllocMatch = AllocComp>
Vector::UnorderedEqualsMatcher< T, AllocComp, AllocMatch > Catch::Matchers::UnorderedEquals (std::vector< T, AllocComp > const &target)
 
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 T , typename Alloc = std::allocator<T>>
Vector::ContainsElementMatcher< T, Alloc > Catch::Matchers::VectorContains (T const &comparator)
 
Floating::WithinAbsMatcher Catch::Matchers::WithinAbs (double target, double margin)
 
Floating::WithinRelMatcher Catch::Matchers::WithinRel (double target, double eps)
 
Floating::WithinRelMatcher Catch::Matchers::WithinRel (double target)
 
Floating::WithinRelMatcher Catch::Matchers::WithinRel (float target, float eps)
 
Floating::WithinRelMatcher Catch::Matchers::WithinRel (float target)
 
Floating::WithinUlpsMatcher Catch::Matchers::WithinULP (double target, uint64_t maxUlpDiff)
 
Floating::WithinUlpsMatcher Catch::Matchers::WithinULP (float target, uint64_t maxUlpDiff)
 

Variables

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

Macro Definition Documentation

#define AND_GIVEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( "And given: " << desc )

Definition at line 17486 of file catch.hpp.

#define AND_THEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( " And: " << desc )

Definition at line 17490 of file catch.hpp.

#define AND_WHEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( " And when: " << desc )

Definition at line 17488 of file catch.hpp.

#define ANON_TEST_CASE ( )    INTERNAL_CATCH_TESTCASE()

Definition at line 17443 of file catch.hpp.

#define CAPTURE (   ...)    INTERNAL_CATCH_CAPTURE( INTERNAL_CATCH_UNIQUE_NAME(capturer), "CAPTURE",__VA_ARGS__ )

Definition at line 17432 of file catch.hpp.

#define CATCH_CATCH_ALL   if ((false))

Definition at line 459 of file catch.hpp.

#define CATCH_CATCH_ANON (   type)    if ((false))

Definition at line 460 of file catch.hpp.

#define CATCH_CONFIG_COUNTER

Definition at line 354 of file catch.hpp.

#define CATCH_CONFIG_CPP11_TO_STRING

Definition at line 369 of file catch.hpp.

#define CATCH_CONFIG_DISABLE_EXCEPTIONS

Definition at line 401 of file catch.hpp.

#define CATCH_CONFIG_GLOBAL_NEXTAFTER

Definition at line 417 of file catch.hpp.

#define CATCH_CONFIG_POSIX_SIGNALS

Definition at line 361 of file catch.hpp.

#define CATCH_CONFIG_WCHAR

Definition at line 365 of file catch.hpp.

#define CATCH_DEFER (   id)    id CATCH_EMPTY()

Definition at line 717 of file catch.hpp.

#define CATCH_EMPTY ( )

Definition at line 716 of file catch.hpp.

#define CATCH_ENFORCE (   condition,
  ... 
)    do{ if( !(condition) ) CATCH_ERROR( __VA_ARGS__ ); } while(false)

Definition at line 3905 of file catch.hpp.

#define CATCH_ERROR (   ...)    Catch::throw_domain_error(CATCH_MAKE_MSG( __VA_ARGS__ ))

Definition at line 3899 of file catch.hpp.

#define CATCH_INTERNAL_CONFIG_COUNTER

Definition at line 301 of file catch.hpp.

#define CATCH_INTERNAL_CONFIG_GLOBAL_NEXTAFTER

Definition at line 316 of file catch.hpp.

#define CATCH_INTERNAL_CONFIG_POSIX_SIGNALS

Definition at line 190 of file catch.hpp.

#define CATCH_INTERNAL_ERROR (   ...)    Catch::throw_logic_error(CATCH_MAKE_MSG( CATCH_INTERNAL_LINEINFO << ": Internal Catch2 error: " << __VA_ARGS__))

Definition at line 3896 of file catch.hpp.

#define CATCH_INTERNAL_IGNORE_BUT_WARN (   ...)

Definition at line 444 of file catch.hpp.

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

Definition at line 547 of file catch.hpp.

#define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION

Definition at line 423 of file catch.hpp.

#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION

Definition at line 426 of file catch.hpp.

#define CATCH_INTERNAL_STRINGIFY (   ...)    #__VA_ARGS__

Definition at line 2677 of file catch.hpp.

#define CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS

Definition at line 432 of file catch.hpp.

#define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS

Definition at line 429 of file catch.hpp.

#define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS

Definition at line 454 of file catch.hpp.

#define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS

Definition at line 435 of file catch.hpp.

#define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS

Definition at line 438 of file catch.hpp.

#define CATCH_MAKE_MSG (   ...)    (Catch::ReusableStringStream() << __VA_ARGS__).str()

Definition at line 3893 of file catch.hpp.

#define CATCH_REC_END (   ...)

Definition at line 713 of file catch.hpp.

#define CATCH_REC_GET_END (   ...)    CATCH_REC_GET_END1

Definition at line 721 of file catch.hpp.

#define CATCH_REC_GET_END1 (   ...)    CATCH_REC_GET_END2

Definition at line 720 of file catch.hpp.

#define CATCH_REC_GET_END2 ( )    0, CATCH_REC_END

Definition at line 719 of file catch.hpp.

#define CATCH_REC_LIST (   f,
  ... 
)    CATCH_RECURSE(CATCH_REC_LIST2(f, __VA_ARGS__, ()()(), ()()(), ()()(), 0))

Definition at line 739 of file catch.hpp.

#define CATCH_REC_LIST0 (   f,
  x,
  peek,
  ... 
)    , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ )

Definition at line 726 of file catch.hpp.

#define CATCH_REC_LIST0_UD (   f,
  userdata,
  x,
  peek,
  ... 
)    , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ )

Definition at line 730 of file catch.hpp.

#define CATCH_REC_LIST1 (   f,
  x,
  peek,
  ... 
)    , f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0) ) ( f, peek, __VA_ARGS__ )

Definition at line 727 of file catch.hpp.

#define CATCH_REC_LIST1_UD (   f,
  userdata,
  x,
  peek,
  ... 
)    , f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST0_UD) ) ( f, userdata, peek, __VA_ARGS__ )

Definition at line 731 of file catch.hpp.

#define CATCH_REC_LIST2 (   f,
  x,
  peek,
  ... 
)    f(x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1) ) ( f, peek, __VA_ARGS__ )

Definition at line 728 of file catch.hpp.

#define CATCH_REC_LIST2_UD (   f,
  userdata,
  x,
  peek,
  ... 
)    f(userdata, x) CATCH_DEFER ( CATCH_REC_NEXT(peek, CATCH_REC_LIST1_UD) ) ( f, userdata, peek, __VA_ARGS__ )

Definition at line 732 of file catch.hpp.

#define CATCH_REC_LIST_UD (   f,
  userdata,
  ... 
)    CATCH_RECURSE(CATCH_REC_LIST2_UD(f, userdata, __VA_ARGS__, ()()(), ()()(), ()()(), 0))

Definition at line 737 of file catch.hpp.

#define CATCH_REC_NEXT (   test,
  next 
)    CATCH_REC_NEXT1(CATCH_REC_GET_END test, next)

Definition at line 724 of file catch.hpp.

#define CATCH_REC_NEXT0 (   test,
  next,
  ... 
)    next CATCH_REC_OUT

Definition at line 722 of file catch.hpp.

#define CATCH_REC_NEXT1 (   test,
  next 
)    CATCH_DEFER ( CATCH_REC_NEXT0 ) ( test, next, 0)

Definition at line 723 of file catch.hpp.

#define CATCH_REC_OUT

Definition at line 714 of file catch.hpp.

#define CATCH_RECURSE (   ...)    CATCH_RECURSION_LEVEL5(__VA_ARGS__)

Definition at line 710 of file catch.hpp.

#define CATCH_RECURSION_LEVEL0 (   ...)    __VA_ARGS__

Definition at line 697 of file catch.hpp.

#define CATCH_RECURSION_LEVEL1 (   ...)    CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(CATCH_RECURSION_LEVEL0(__VA_ARGS__)))

Definition at line 698 of file catch.hpp.

#define CATCH_RECURSION_LEVEL2 (   ...)    CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(CATCH_RECURSION_LEVEL1(__VA_ARGS__)))

Definition at line 699 of file catch.hpp.

#define CATCH_RECURSION_LEVEL3 (   ...)    CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(CATCH_RECURSION_LEVEL2(__VA_ARGS__)))

Definition at line 700 of file catch.hpp.

#define CATCH_RECURSION_LEVEL4 (   ...)    CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(CATCH_RECURSION_LEVEL3(__VA_ARGS__)))

Definition at line 701 of file catch.hpp.

#define CATCH_RECURSION_LEVEL5 (   ...)    CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(CATCH_RECURSION_LEVEL4(__VA_ARGS__)))

Definition at line 702 of file catch.hpp.

#define CATCH_REGISTER_ENUM (   enumName,
  ... 
)    INTERNAL_CATCH_REGISTER_ENUM( enumName, __VA_ARGS__ )

Definition at line 2179 of file catch.hpp.

#define CATCH_REGISTER_TAG_ALIAS (   alias,
  spec 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
namespace{ Catch::RegistrarForTagAliases INTERNAL_CATCH_UNIQUE_NAME( AutoRegisterTagAlias )( alias, spec, CATCH_INTERNAL_LINEINFO ); } \
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 559 of file catch.hpp.

#define CATCH_RUNTIME_ERROR (   ...)    Catch::throw_runtime_error(CATCH_MAKE_MSG( __VA_ARGS__ ))

Definition at line 3902 of file catch.hpp.

#define CATCH_TRANSLATE_EXCEPTION (   signature)    INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )

Definition at line 17479 of file catch.hpp.

#define CATCH_TRY   if ((true))

Definition at line 458 of file catch.hpp.

#define CATCH_VERSION_MAJOR   2

Definition at line 16 of file catch.hpp.

#define CATCH_VERSION_MINOR   12

Definition at line 17 of file catch.hpp.

#define CATCH_VERSION_PATCH   1

Definition at line 18 of file catch.hpp.

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

Definition at line 17409 of file catch.hpp.

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

Definition at line 17410 of file catch.hpp.

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

Definition at line 17413 of file catch.hpp.

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

Definition at line 17421 of file catch.hpp.

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

Definition at line 17424 of file catch.hpp.

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

Definition at line 17415 of file catch.hpp.

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

Definition at line 17416 of file catch.hpp.

#define CHECK_THROWS_MATCHES (   expr,
  exceptionType,
  matcher 
)    INTERNAL_CATCH_THROWS_MATCHES( "CHECK_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::ContinueOnFailure, matcher, expr )

Definition at line 17419 of file catch.hpp.

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

Definition at line 17417 of file catch.hpp.

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

Definition at line 17412 of file catch.hpp.

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

Definition at line 17411 of file catch.hpp.

#define DYNAMIC_SECTION (   ...)    INTERNAL_CATCH_DYNAMIC_SECTION( __VA_ARGS__ )

Definition at line 17439 of file catch.hpp.

#define FAIL (   ...)    INTERNAL_CATCH_MSG( "FAIL", Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::Normal, __VA_ARGS__ )

Definition at line 17440 of file catch.hpp.

#define FAIL_CHECK (   ...)    INTERNAL_CATCH_MSG( "FAIL_CHECK", Catch::ResultWas::ExplicitFailure, Catch::ResultDisposition::ContinueOnFailure, __VA_ARGS__ )

Definition at line 17441 of file catch.hpp.

#define GENERATE (   ...)    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )

Definition at line 4099 of file catch.hpp.

#define GENERATE_COPY (   ...)    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )

Definition at line 4101 of file catch.hpp.

#define GENERATE_REF (   ...)    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )

Definition at line 4103 of file catch.hpp.

#define GIVEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( " Given: " << desc )

Definition at line 17485 of file catch.hpp.

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

Definition at line 17429 of file catch.hpp.

#define INTERNAL_CATCH_CAPTURE (   varName,
  macroName,
  ... 
)
Value:
auto varName = Catch::Capturer( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info, #__VA_ARGS__ ); \
varName.captureValues( 0, __VA_ARGS__ )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547

Definition at line 2783 of file catch.hpp.

#define INTERNAL_CATCH_CATCH (   capturer)

Definition at line 2688 of file catch.hpp.

Definition at line 907 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST0 (   TestName)

Definition at line 834 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST1 (   TestName,
  signature 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
static void TestName()

Definition at line 835 of file catch.hpp.

Definition at line 903 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD0 (   TestName,
  ClassName 
)

Definition at line 878 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD1 (   TestName,
  ClassName,
  signature 
)
Value:
template<typename TestType> \
struct TestName : INTERNAL_CATCH_REMOVE_PARENS(ClassName)<TestType> { \
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759

Definition at line 879 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD_X (   TestName,
  ClassName,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)> \
struct TestName : INTERNAL_CATCH_REMOVE_PARENS(ClassName)<__VA_ARGS__> { \
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759

Definition at line 885 of file catch.hpp.

#define INTERNAL_CATCH_DECLARE_SIG_TEST_X (   TestName,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
static void TestName()

Definition at line 838 of file catch.hpp.

#define INTERNAL_CATCH_DEF (   ...)    INTERNAL_CATCH_DEF __VA_ARGS__

Definition at line 743 of file catch.hpp.

Definition at line 906 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST0 (   TestName)

Definition at line 842 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST1 (   TestName,
  signature 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
static void TestName()

Definition at line 843 of file catch.hpp.

Definition at line 902 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD0 (   TestName)

Definition at line 891 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD1 (   TestName,
  signature 
)
Value:
template<typename TestType> \
void INTERNAL_CATCH_MAKE_NAMESPACE(TestName)::TestName<TestType>::test()
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757

Definition at line 892 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD_X (   TestName,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)> \
void INTERNAL_CATCH_MAKE_NAMESPACE(TestName)::TestName<__VA_ARGS__>::test()
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757

Definition at line 895 of file catch.hpp.

#define INTERNAL_CATCH_DEFINE_SIG_TEST_X (   TestName,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
static void TestName()

Definition at line 846 of file catch.hpp.

#define INTERNAL_CATCH_DYNAMIC_SECTION (   ...)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS \
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 2933 of file catch.hpp.

#define INTERNAL_CATCH_ELSE (   macroName,
  resultDisposition,
  ... 
)
Value:
INTERNAL_CATCH_TEST( macroName, resultDisposition, __VA_ARGS__ ); \
if( !Catch::getResultCapture().lastAssertionPassed() )
IResultCapture & getResultCapture()
#define INTERNAL_CATCH_TEST(macroName, resultDisposition,...)
Definition: catch.hpp:2700

Definition at line 2719 of file catch.hpp.

#define INTERNAL_CATCH_EXPAND1 (   param)    INTERNAL_CATCH_EXPAND2(param)

Definition at line 741 of file catch.hpp.

#define INTERNAL_CATCH_EXPAND2 (   ...)    INTERNAL_CATCH_NO## __VA_ARGS__

Definition at line 742 of file catch.hpp.

#define INTERNAL_CATCH_IF (   macroName,
  resultDisposition,
  ... 
)
Value:
INTERNAL_CATCH_TEST( macroName, resultDisposition, __VA_ARGS__ ); \
if( Catch::getResultCapture().lastAssertionPassed() )
IResultCapture & getResultCapture()
#define INTERNAL_CATCH_TEST(macroName, resultDisposition,...)
Definition: catch.hpp:2700

Definition at line 2714 of file catch.hpp.

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

Definition at line 2788 of file catch.hpp.

#define INTERNAL_CATCH_MAKE_NAMESPACE (   name)    INTERNAL_CATCH_MAKE_NAMESPACE2(name)

Definition at line 757 of file catch.hpp.

#define INTERNAL_CATCH_MAKE_NAMESPACE2 (   ...)    ns_##__VA_ARGS__

Definition at line 756 of file catch.hpp.

#define INTERNAL_CATCH_MAKE_TYPE_LIST (   ...)    INTERNAL_CATCH_MAKE_TYPE_LIST2(INTERNAL_CATCH_REMOVE_PARENS(__VA_ARGS__))

Definition at line 763 of file catch.hpp.

#define INTERNAL_CATCH_MAKE_TYPE_LIST2 (   ...)    decltype(get_wrapper<INTERNAL_CATCH_REMOVE_PARENS_GEN(__VA_ARGS__)>())

Definition at line 762 of file catch.hpp.

#define INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES (   ...)    CATCH_REC_LIST(INTERNAL_CATCH_MAKE_TYPE_LIST,__VA_ARGS__)

Definition at line 769 of file catch.hpp.

#define INTERNAL_CATCH_METHOD_AS_TEST_CASE (   QualifiedMethod,
  ... 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( &QualifiedMethod ), CATCH_INTERNAL_LINEINFO, "&" #QualifiedMethod, Catch::NameAndTags{ __VA_ARGS__ } ); } /* NOLINT */ \
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 1062 of file catch.hpp.

#define INTERNAL_CATCH_MSG (   macroName,
  messageType,
  resultDisposition,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::StringRef(), resultDisposition ); \
catchAssertionHandler.handleMessage( messageType, ( Catch::MessageStream() << __VA_ARGS__ + ::Catch::StreamEndStop() ).m_stream.str() ); \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697

Definition at line 2775 of file catch.hpp.

#define INTERNAL_CATCH_NO_THROW (   macroName,
  resultDisposition,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__), resultDisposition ); \
try { \
static_cast<void>(__VA_ARGS__); \
catchAssertionHandler.handleExceptionNotThrownAsExpected(); \
} \
catch( ... ) { \
catchAssertionHandler.handleUnexpectedInflightException(); \
} \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677

Definition at line 2724 of file catch.hpp.

#define INTERNAL_CATCH_NOINTERNAL_CATCH_DEF

Definition at line 744 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_0

Definition at line 900 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_1 (   signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)> struct Nttp{};\
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
constexpr auto get_wrapper() noexcept -> Nttp<__VA_ARGS__> { return {}; } \
template<template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class...> struct NttpTemplateTypeList{};\
template<template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class...Cs>\
constexpr auto get_wrapper() noexcept -> NttpTemplateTypeList<Cs...> { return {}; } \
\
template< template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class Container, template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class List, INTERNAL_CATCH_REMOVE_PARENS(signature)>\
struct rewrap<NttpTemplateTypeList<Container>, List<__VA_ARGS__>> { using type = TypeList<Container<__VA_ARGS__>>; };\
template< template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class Container, template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class List, INTERNAL_CATCH_REMOVE_PARENS(signature), typename...Elements>\
struct rewrap<NttpTemplateTypeList<Container>, List<__VA_ARGS__>, Elements...> { using type = typename append<TypeList<Container<__VA_ARGS__>>, typename rewrap<NttpTemplateTypeList<Container>, Elements...>::type>::type; };\
template<template <typename...> class Final, template<INTERNAL_CATCH_REMOVE_PARENS(signature)> class...Containers, typename...Types>\
struct create<Final, NttpTemplateTypeList<Containers...>, TypeList<Types...>> { using type = typename append<Final<>, typename rewrap<NttpTemplateTypeList<Containers>, Types...>::type...>::type; };
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759
GLenum type

Definition at line 819 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_GEN (   ...)    INTERNAL_CATCH_VA_NARGS_IMPL(__VA_ARGS__, INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1(__VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_1( __VA_ARGS__),INTERNAL_CATCH_NTTP_1( __VA_ARGS__), INTERNAL_CATCH_NTTP_0)

Definition at line 901 of file catch.hpp.

Definition at line 905 of file catch.hpp.

Definition at line 904 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_REGISTER (   TestFunc,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
void reg_test(Nttp<__VA_ARGS__>, Catch::NameAndTags nameAndTags)\
{\
Catch::AutoReg( Catch::makeTestInvoker(&TestFunc<__VA_ARGS__>), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), nameAndTags);\
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547

Definition at line 857 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_REGISTER0 (   TestFunc,
  signature 
)
Value:
template<typename Type>\
void reg_test(TypeList<Type>, Catch::NameAndTags nameAndTags)\
{\
Catch::AutoReg( Catch::makeTestInvoker(&TestFunc<Type>), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), nameAndTags);\
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547

Definition at line 850 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_REGISTER_METHOD (   TestName,
  signature,
  ... 
)
Value:
template<INTERNAL_CATCH_REMOVE_PARENS(signature)>\
void reg_test(Nttp<__VA_ARGS__>, Catch::StringRef className, Catch::NameAndTags nameAndTags)\
{\
Catch::AutoReg( Catch::makeTestInvoker(&TestName<__VA_ARGS__>::test), CATCH_INTERNAL_LINEINFO, className, nameAndTags);\
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547

Definition at line 871 of file catch.hpp.

#define INTERNAL_CATCH_NTTP_REGISTER_METHOD0 (   TestName,
  signature,
  ... 
)
Value:
template<typename Type>\
void reg_test(TypeList<Type>, Catch::StringRef className, Catch::NameAndTags nameAndTags)\
{\
Catch::AutoReg( Catch::makeTestInvoker(&TestName<Type>::test), CATCH_INTERNAL_LINEINFO, className, nameAndTags);\
}
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547

Definition at line 864 of file catch.hpp.

#define INTERNAL_CATCH_REACT (   handler)    handler.complete();

Definition at line 2697 of file catch.hpp.

#define INTERNAL_CATCH_REGISTER_ENUM (   enumName,
  ... 
)
Value:
namespace Catch { \
template<> struct StringMaker<enumName> { \
static std::string convert( enumName value ) { \
static const auto& enumInfo = ::Catch::getMutableRegistryHub().getMutableEnumValuesRegistry().registerEnum( #enumName, #__VA_ARGS__, { __VA_ARGS__ } ); \
return static_cast<std::string>(enumInfo.lookup( static_cast<int>( value ) )); \
} \
}; \
}
GLfloat value
virtual Detail::EnumInfo const & registerEnum(StringRef enumName, StringRef allEnums, std::vector< int > const &values)=0
Definition: catch.hpp:95
GLsizei const GLchar *const * string
IMutableRegistryHub & getMutableRegistryHub()
static std::enable_if<::Catch::Detail::IsStreamInsertable< Fake >::value, std::string >::type convert(const Fake &value)
Definition: catch.hpp:1623
virtual IMutableEnumValuesRegistry & getMutableEnumValuesRegistry()=0

Definition at line 2169 of file catch.hpp.

#define INTERNAL_CATCH_REGISTER_TESTCASE (   Function,
  ... 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( Function ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ __VA_ARGS__ } ); /* NOLINT */ \
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 1084 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS (   ...)    INTERNAL_CATCH_EXPAND1(INTERNAL_CATCH_DEF __VA_ARGS__)

Definition at line 759 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_10_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  _8,
  _9 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_9_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9)

Definition at line 781 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_11_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  _8,
  _9,
  _10 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_10_ARG(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10)

Definition at line 782 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_1_ARG (   _0)    INTERNAL_CATCH_REMOVE_PARENS(_0)

Definition at line 772 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_2_ARG (   _0,
  _1 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_1_ARG(_1)

Definition at line 773 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_3_ARG (   _0,
  _1,
  _2 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_2_ARG(_1, _2)

Definition at line 774 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_4_ARG (   _0,
  _1,
  _2,
  _3 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_3_ARG(_1, _2, _3)

Definition at line 775 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_5_ARG (   _0,
  _1,
  _2,
  _3,
  _4 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_4_ARG(_1, _2, _3, _4)

Definition at line 776 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_6_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_5_ARG(_1, _2, _3, _4, _5)

Definition at line 777 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_7_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_6_ARG(_1, _2, _4, _5, _6)

Definition at line 778 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_8_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_7_ARG(_1, _2, _3, _4, _5, _6, _7)

Definition at line 779 of file catch.hpp.

#define INTERNAL_CATCH_REMOVE_PARENS_9_ARG (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  _8 
)    INTERNAL_CATCH_REMOVE_PARENS(_0), INTERNAL_CATCH_REMOVE_PARENS_8_ARG(_1, _2, _3, _4, _5, _6, _7, _8)

Definition at line 780 of file catch.hpp.

Definition at line 908 of file catch.hpp.

#define INTERNAL_CATCH_SECTION (   ...)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS \
if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInfo( CATCH_INTERNAL_LINEINFO, __VA_ARGS__ ) ) \
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 2927 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIZE (   ...)    INTERNAL_CATCH_STRINGIZE2(__VA_ARGS__)

Definition at line 745 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIZE2 (   ...)    #__VA_ARGS__

Definition at line 747 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS (   param)    INTERNAL_CATCH_STRINGIZE(INTERNAL_CATCH_REMOVE_PARENS(param))

Definition at line 748 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE (   Name,
  Tags,
  TmplList 
)    INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, TmplList )

Definition at line 1212 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_2 (   TestName,
  TestFunc,
  Name,
  Tags,
  TmplList 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \
template<typename TestType> static void TestFunc(); \
namespace {\
namespace INTERNAL_CATCH_MAKE_NAMESPACE(TestName){\
INTERNAL_CATCH_TYPE_GEN\
template<typename... Types> \
struct TestName { \
void reg_tests() { \
int index = 0; \
using expander = int[]; \
(void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestFunc<Types> ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++, 0)... };/* NOLINT */\
} \
};\
static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){ \
using TestInit = typename convert<TestName, TmplList>::type; \
TestInit t; \
t.reg_tests(); \
return 0; \
}(); \
}}\
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
template<typename TestType> \
static void TestFunc()
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
GLsizei const GLchar *const * string
GLuint index
GLdouble t
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define INTERNAL_CATCH_STRINGIZE(...)
Definition: catch.hpp:745
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
GLenum type
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475
std::string to_string(T value)

Definition at line 1185 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD (   ClassName,
  Name,
  Tags,
  TmplList 
)    INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, TmplList )

Definition at line 1342 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD_2 (   TestNameClass,
  TestName,
  ClassName,
  Name,
  Tags,
  TmplList 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \
template<typename TestType> \
struct TestName : INTERNAL_CATCH_REMOVE_PARENS(ClassName <TestType>) { \
};\
namespace {\
namespace INTERNAL_CATCH_MAKE_NAMESPACE(TestName){ \
INTERNAL_CATCH_TYPE_GEN\
template<typename...Types>\
struct TestNameClass{\
void reg_tests(){\
int index = 0;\
using expander = int[];\
(void)expander{(Catch::AutoReg( Catch::makeTestInvoker( &TestName<Types>::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ Name " - " + std::string(INTERNAL_CATCH_STRINGIZE(TmplList)) + " - " + std::to_string(index), Tags } ), index++, 0)... };/* NOLINT */ \
}\
};\
static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
using TestInit = typename convert<TestNameClass, TmplList>::type;\
TestInit t;\
t.reg_tests();\
return 0;\
}(); \
}}\
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
template<typename TestType> \
void TestName<TestType>::test()
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
GLsizei const GLchar *const * string
GLuint index
GLdouble t
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define INTERNAL_CATCH_STRINGIZE(...)
Definition: catch.hpp:745
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759
GLenum type
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475
std::string to_string(T value)

Definition at line 1312 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE (   Name,
  Tags,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, typename T,__VA_ARGS__)

Definition at line 1170 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2 (   TestName,
  TestFuncName,
  Name,
  Tags,
  Signature,
  TmplTypes,
  TypesList 
)

Definition at line 1136 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD (   ClassName,
  Name,
  Tags,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, typename T, __VA_ARGS__ )

Definition at line 1297 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2 (   TestNameClass,
  TestName,
  ClassName,
  Name,
  Tags,
  Signature,
  TmplTypes,
  TypesList 
)

Definition at line 1260 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG (   ClassName,
  Name,
  Tags,
  Signature,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), ClassName, Name, Tags, Signature, __VA_ARGS__ )

Definition at line 1305 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_SIG (   Name,
  Tags,
  Signature,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE2(INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, Signature, __VA_ARGS__)

Definition at line 1178 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE (   Name,
  Tags,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, typename TestType, __VA_ARGS__ )

Definition at line 1121 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_2 (   TestName,
  TestFunc,
  Name,
  Tags,
  Signature,
  ... 
)
Value:
namespace {\
namespace INTERNAL_CATCH_MAKE_NAMESPACE(TestName){\
template<typename...Types> \
struct TestName{\
TestName(){\
int index = 0; \
constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, __VA_ARGS__)};\
using expander = int[];\
(void)expander{(reg_test(Types{}, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++, 0)... };/* NOLINT */ \
}\
};\
static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
TestName<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(__VA_ARGS__)>();\
return 0;\
}();\
}\
}\
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define CATCH_REC_LIST(f,...)
Definition: catch.hpp:739
#define INTERNAL_CATCH_NTTP_GEN(...)
Definition: catch.hpp:901
GLsizei const GLchar *const * string
GLuint index
#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param)
Definition: catch.hpp:748
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475
#define INTERNAL_CATCH_DECLARE_SIG_TEST(TestName,...)
Definition: catch.hpp:907
#define INTERNAL_CATCH_NTTP_REG_GEN(TestFunc,...)
Definition: catch.hpp:905
#define INTERNAL_CATCH_DEFINE_SIG_TEST(TestName,...)
Definition: catch.hpp:906

Definition at line 1091 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD (   ClassName,
  Name,
  Tags,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____C_L_A_S_S____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, typename T, __VA_ARGS__ )

Definition at line 1245 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2 (   TestNameClass,
  TestName,
  ClassName,
  Name,
  Tags,
  Signature,
  ... 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \
CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \
namespace {\
namespace INTERNAL_CATCH_MAKE_NAMESPACE(TestName){ \
template<typename...Types> \
struct TestNameClass{\
TestNameClass(){\
int index = 0; \
constexpr char const* tmpl_types[] = {CATCH_REC_LIST(INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS, __VA_ARGS__)};\
using expander = int[];\
(void)expander{(reg_test(Types{}, #ClassName, Catch::NameAndTags{ Name " - " + std::string(tmpl_types[index]), Tags } ), index++, 0)... };/* NOLINT */ \
}\
};\
static int INTERNAL_CATCH_UNIQUE_NAME( globalRegistrar ) = [](){\
TestNameClass<INTERNAL_CATCH_MAKE_TYPE_LISTS_FROM_TYPES(__VA_ARGS__)>();\
return 0;\
}();\
}\
}\
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
#define CATCH_REC_LIST(f,...)
Definition: catch.hpp:739
#define INTERNAL_CATCH_NTTP_GEN(...)
Definition: catch.hpp:901
GLsizei const GLchar *const * string
GLuint index
#define INTERNAL_CATCH_DEFINE_SIG_TEST_METHOD(TestName,...)
Definition: catch.hpp:902
#define INTERNAL_CATCH_NTTP_REG_METHOD_GEN(TestName,...)
Definition: catch.hpp:904
#define INTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS(param)
Definition: catch.hpp:748
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759
#define INTERNAL_CATCH_DECLARE_SIG_TEST_METHOD(TestName, ClassName,...)
Definition: catch.hpp:903
#define INTERNAL_CATCH_MAKE_NAMESPACE(name)
Definition: catch.hpp:757
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 1215 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_SIG (   ClassName,
  Name,
  Tags,
  Signature,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____C_L_A_S_S____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ) , ClassName, Name, Tags, Signature, __VA_ARGS__ )

Definition at line 1253 of file catch.hpp.

#define INTERNAL_CATCH_TEMPLATE_TEST_CASE_SIG (   Name,
  Tags,
  Signature,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____ ), INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____ ), Name, Tags, Signature, __VA_ARGS__ )

Definition at line 1129 of file catch.hpp.

#define INTERNAL_CATCH_TEST (   macroName,
  resultDisposition,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__), resultDisposition ); \
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \
catchAssertionHandler.handleExpr( Catch::Decomposer() <= __VA_ARGS__ ); \
} INTERNAL_CATCH_CATCH( catchAssertionHandler ) \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( (void)0, (false) && static_cast<bool>( !!(__VA_ARGS__) ) )
#define INTERNAL_CATCH_TRY
Definition: catch.hpp:2687
#define INTERNAL_CATCH_CATCH(capturer)
Definition: catch.hpp:2688
#define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
Definition: catch.hpp:426
#define CATCH_INTERNAL_IGNORE_BUT_WARN(...)
Definition: catch.hpp:444
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677

Definition at line 2700 of file catch.hpp.

#define INTERNAL_CATCH_TEST_CASE_METHOD (   ClassName,
  ... 
)    INTERNAL_CATCH_TEST_CASE_METHOD2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), ClassName, __VA_ARGS__ )

Definition at line 1080 of file catch.hpp.

#define INTERNAL_CATCH_TEST_CASE_METHOD2 (   TestName,
  ClassName,
  ... 
)
Value:
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
namespace{ \
struct TestName : INTERNAL_CATCH_REMOVE_PARENS(ClassName) { \
void test(); \
}; \
Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar ) ( Catch::makeTestInvoker( &TestName::test ), CATCH_INTERNAL_LINEINFO, #ClassName, Catch::NameAndTags{ __VA_ARGS__ } ); /* NOLINT */ \
} \
void TestName::test()
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REMOVE_PARENS(...)
Definition: catch.hpp:759
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 1069 of file catch.hpp.

#define INTERNAL_CATCH_TESTCASE (   ...)    INTERNAL_CATCH_TESTCASE2( INTERNAL_CATCH_UNIQUE_NAME( ____C_A_T_C_H____T_E_S_T____ ), __VA_ARGS__ )

Definition at line 1058 of file catch.hpp.

#define INTERNAL_CATCH_TESTCASE2 (   TestName,
  ... 
)
Value:
static void TestName(); \
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
namespace{ Catch::AutoReg INTERNAL_CATCH_UNIQUE_NAME( autoRegistrar )( Catch::makeTestInvoker( &TestName ), CATCH_INTERNAL_LINEINFO, Catch::StringRef(), Catch::NameAndTags{ __VA_ARGS__ } ); } /* NOLINT */ \
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
static void TestName()
auto makeTestInvoker(void(*testAsFunction)()) noexcept-> ITestInvoker *
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 1051 of file catch.hpp.

#define INTERNAL_CATCH_THROWS (   macroName,
  resultDisposition,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__), resultDisposition); \
if( catchAssertionHandler.allowThrows() ) \
try { \
static_cast<void>(__VA_ARGS__); \
catchAssertionHandler.handleUnexpectedExceptionNotThrown(); \
} \
catch( ... ) { \
catchAssertionHandler.handleExceptionThrownAsExpected(); \
} \
else \
catchAssertionHandler.handleThrowingCallSkipped(); \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677

Definition at line 2738 of file catch.hpp.

#define INTERNAL_CATCH_THROWS_AS (   macroName,
  exceptionType,
  resultDisposition,
  expr 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(expr) ", " CATCH_INTERNAL_STRINGIFY(exceptionType), resultDisposition ); \
if( catchAssertionHandler.allowThrows() ) \
try { \
static_cast<void>(expr); \
catchAssertionHandler.handleUnexpectedExceptionNotThrown(); \
} \
catch( exceptionType const& ) { \
catchAssertionHandler.handleExceptionThrownAsExpected(); \
} \
catch( ... ) { \
catchAssertionHandler.handleUnexpectedInflightException(); \
} \
else \
catchAssertionHandler.handleThrowingCallSkipped(); \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677

Definition at line 2755 of file catch.hpp.

#define INTERNAL_CATCH_THROWS_MATCHES (   macroName,
  exceptionType,
  resultDisposition,
  matcher,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__) ", " CATCH_INTERNAL_STRINGIFY(exceptionType) ", " CATCH_INTERNAL_STRINGIFY(matcher), resultDisposition ); \
if( catchAssertionHandler.allowThrows() ) \
try { \
static_cast<void>(__VA_ARGS__ ); \
catchAssertionHandler.handleUnexpectedExceptionNotThrown(); \
} \
catch( exceptionType const& ex ) { \
catchAssertionHandler.handleExpr( Catch::makeMatchExpr( ex, matcher, #matcher##_catch_sr ) ); \
} \
catch( ... ) { \
catchAssertionHandler.handleUnexpectedInflightException(); \
} \
else \
catchAssertionHandler.handleThrowingCallSkipped(); \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677
auto makeMatchExpr(ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT >
Definition: catch.hpp:3796

Definition at line 3813 of file catch.hpp.

#define INTERNAL_CATCH_THROWS_STR_MATCHES (   macroName,
  resultDisposition,
  matcher,
  ... 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__) ", " CATCH_INTERNAL_STRINGIFY(matcher), resultDisposition ); \
if( catchAssertionHandler.allowThrows() ) \
try { \
static_cast<void>(__VA_ARGS__); \
catchAssertionHandler.handleUnexpectedExceptionNotThrown(); \
} \
catch( ... ) { \
Catch::handleExceptionMatchExpr( catchAssertionHandler, matcher, #matcher##_catch_sr ); \
} \
else \
catchAssertionHandler.handleThrowingCallSkipped(); \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677
void handleExceptionMatchExpr(AssertionHandler &handler, StringMatcher const &matcher, StringRef const &matcherString)

Definition at line 2797 of file catch.hpp.

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

Definition at line 3065 of file catch.hpp.

#define INTERNAL_CATCH_TRANSLATE_EXCEPTION2 (   translatorName,
  signature 
)
Value:
static std::string translatorName( signature ); \
CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \
CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS \
namespace{ Catch::ExceptionTranslatorRegistrar INTERNAL_CATCH_UNIQUE_NAME( catch_internal_ExceptionRegistrar )( &translatorName ); } \
CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \
static std::string translatorName( signature )
GLsizei const GLchar *const * string
#define INTERNAL_CATCH_UNIQUE_NAME(name)
Definition: catch.hpp:475

Definition at line 3057 of file catch.hpp.

#define INTERNAL_CATCH_TRY

Definition at line 2687 of file catch.hpp.

#define INTERNAL_CATCH_TYPE_GEN

Definition at line 786 of file catch.hpp.

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

Definition at line 475 of file catch.hpp.

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

Definition at line 473 of file catch.hpp.

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

Definition at line 472 of file catch.hpp.

#define INTERNAL_CATCH_UNSCOPED_INFO (   macroName,
  log 
)    Catch::getResultCapture().emplaceUnscopedMessage( Catch::MessageBuilder( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log )

Definition at line 2792 of file catch.hpp.

#define INTERNAL_CATCH_VA_NARGS_IMPL (   _0,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  _8,
  _9,
  _10,
  N,
  ... 
)    N

Definition at line 784 of file catch.hpp.

#define INTERNAL_CHECK_THAT (   macroName,
  matcher,
  resultDisposition,
  arg 
)
Value:
do { \
Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, CATCH_INTERNAL_STRINGIFY(arg) ", " CATCH_INTERNAL_STRINGIFY(matcher), resultDisposition ); \
catchAssertionHandler.handleExpr( Catch::makeMatchExpr( arg, matcher, #matcher##_catch_sr ) ); \
} INTERNAL_CATCH_CATCH( catchAssertionHandler ) \
INTERNAL_CATCH_REACT( catchAssertionHandler ) \
} while( false )
#define INTERNAL_CATCH_TRY
Definition: catch.hpp:2687
#define INTERNAL_CATCH_CATCH(capturer)
Definition: catch.hpp:2688
Definition: arg_fwd.hpp:23
#define CATCH_INTERNAL_LINEINFO
Definition: catch.hpp:547
#define INTERNAL_CATCH_REACT(handler)
Definition: catch.hpp:2697
#define CATCH_INTERNAL_STRINGIFY(...)
Definition: catch.hpp:2677
auto makeMatchExpr(ArgT const &arg, MatcherT const &matcher, StringRef const &matcherString) -> MatchExpr< ArgT, MatcherT >
Definition: catch.hpp:3796

Definition at line 3803 of file catch.hpp.

#define METHOD_AS_TEST_CASE (   method,
  ... 
)    INTERNAL_CATCH_METHOD_AS_TEST_CASE( method, __VA_ARGS__ )

Definition at line 17436 of file catch.hpp.

#define REGISTER_TEST_CASE (   Function,
  ... 
)    INTERNAL_CATCH_REGISTER_TESTCASE( Function, __VA_ARGS__ )

Definition at line 17437 of file catch.hpp.

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

Definition at line 17398 of file catch.hpp.

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

Definition at line 17399 of file catch.hpp.

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

Definition at line 17407 of file catch.hpp.

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

Definition at line 17426 of file catch.hpp.

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

Definition at line 17401 of file catch.hpp.

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

Definition at line 17402 of file catch.hpp.

#define REQUIRE_THROWS_MATCHES (   expr,
  exceptionType,
  matcher 
)    INTERNAL_CATCH_THROWS_MATCHES( "REQUIRE_THROWS_MATCHES", exceptionType, Catch::ResultDisposition::Normal, matcher, expr )

Definition at line 17405 of file catch.hpp.

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

Definition at line 17403 of file catch.hpp.

#define SCENARIO (   ...)    TEST_CASE( "Scenario: " __VA_ARGS__ )

Definition at line 17482 of file catch.hpp.

#define SCENARIO_METHOD (   className,
  ... 
)    INTERNAL_CATCH_TEST_CASE_METHOD( className, "Scenario: " __VA_ARGS__ )

Definition at line 17483 of file catch.hpp.

#define SECTION (   ...)    INTERNAL_CATCH_SECTION( __VA_ARGS__ )

Definition at line 17438 of file catch.hpp.

#define STATIC_REQUIRE (   ...)    static_assert( __VA_ARGS__, #__VA_ARGS__ ); SUCCEED( #__VA_ARGS__ )

Definition at line 17470 of file catch.hpp.

#define STATIC_REQUIRE_FALSE (   ...)    static_assert( !(__VA_ARGS__), "!(" #__VA_ARGS__ ")" ); SUCCEED( "!(" #__VA_ARGS__ ")" )

Definition at line 17471 of file catch.hpp.

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

Definition at line 17442 of file catch.hpp.

#define TEMPLATE_LIST_TEST_CASE (   ...)    INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE(__VA_ARGS__)

Definition at line 17454 of file catch.hpp.

#define TEMPLATE_LIST_TEST_CASE_METHOD (   className,
  ... 
)    INTERNAL_CATCH_TEMPLATE_LIST_TEST_CASE_METHOD( className, __VA_ARGS__ )

Definition at line 17455 of file catch.hpp.

#define TEMPLATE_PRODUCT_TEST_CASE (   ...)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE( __VA_ARGS__ )

Definition at line 17450 of file catch.hpp.

#define TEMPLATE_PRODUCT_TEST_CASE_METHOD (   className,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD( className, __VA_ARGS__ )

Definition at line 17452 of file catch.hpp.

#define TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG (   className,
  ... 
)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG( className, __VA_ARGS__ )

Definition at line 17453 of file catch.hpp.

#define TEMPLATE_PRODUCT_TEST_CASE_SIG (   ...)    INTERNAL_CATCH_TEMPLATE_PRODUCT_TEST_CASE_SIG( __VA_ARGS__ )

Definition at line 17451 of file catch.hpp.

#define TEMPLATE_TEST_CASE (   ...)    INTERNAL_CATCH_TEMPLATE_TEST_CASE( __VA_ARGS__ )

Definition at line 17446 of file catch.hpp.

#define TEMPLATE_TEST_CASE_METHOD (   className,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD( className, __VA_ARGS__ )

Definition at line 17448 of file catch.hpp.

#define TEMPLATE_TEST_CASE_METHOD_SIG (   className,
  ... 
)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_METHOD_SIG( className, __VA_ARGS__ )

Definition at line 17449 of file catch.hpp.

#define TEMPLATE_TEST_CASE_SIG (   ...)    INTERNAL_CATCH_TEMPLATE_TEST_CASE_SIG( __VA_ARGS__ )

Definition at line 17447 of file catch.hpp.

#define TEST_CASE (   ...)    INTERNAL_CATCH_TESTCASE( __VA_ARGS__ )

Definition at line 17434 of file catch.hpp.

#define TEST_CASE_METHOD (   className,
  ... 
)    INTERNAL_CATCH_TEST_CASE_METHOD( className, __VA_ARGS__ )

Definition at line 17435 of file catch.hpp.

#define THEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( " Then: " << desc )

Definition at line 17489 of file catch.hpp.

#define UNSCOPED_INFO (   msg)    INTERNAL_CATCH_UNSCOPED_INFO( "UNSCOPED_INFO", msg )

Definition at line 17430 of file catch.hpp.

#define WARN (   msg)    INTERNAL_CATCH_MSG( "WARN", Catch::ResultWas::Warning, Catch::ResultDisposition::ContinueOnFailure, msg )

Definition at line 17431 of file catch.hpp.

#define WHEN (   desc)    INTERNAL_CATCH_DYNAMIC_SECTION( " When: " << desc )

Definition at line 17487 of file catch.hpp.

Function Documentation

constexpr auto operator""_catch_sr ( char const *  rawChars,
std::size_t  size 
) -> Catch::StringRef
noexcept

Definition at line 689 of file catch.hpp.

std::ostream& operator<< ( std::ostream &  ,
Catch_global_namespace_dummy   
)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:24