Classes | Namespaces | Defines | Typedefs | Enumerations | Functions | Variables
catch.hpp File Reference
#include <sstream>
#include <stdexcept>
#include <algorithm>
#include <ostream>
#include <string>
#include <memory>
#include <vector>
#include <stdlib.h>
#include <cstddef>
#include <iomanip>
#include <limits>
#include <stdint.h>
#include <iterator>
#include <cmath>
#include <set>
#include <iostream>
#include <streambuf>
#include <fstream>
#include <ctime>
#include <map>
#include <assert.h>
#include <signal.h>
#include <cstdio>
#include <unistd.h>
#include <sys/time.h>
#include <cstring>
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

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

Namespaces

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

Defines

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

Typedefs

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

Enumerations

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

Functions

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

Variables

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

Define Documentation

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

Definition at line 10504 of file catch.hpp.

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

Definition at line 10502 of file catch.hpp.

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

Definition at line 10481 of file catch.hpp.

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

Definition at line 10461 of file catch.hpp.

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

Definition at line 315 of file catch.hpp.

Definition at line 2040 of file catch.hpp.

Definition at line 432 of file catch.hpp.

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

Definition at line 431 of file catch.hpp.

Definition at line 285 of file catch.hpp.

#define CATCH_NOEXCEPT   throw()

Definition at line 293 of file catch.hpp.

#define CATCH_NOEXCEPT_IS (   x)

Definition at line 294 of file catch.hpp.

Definition at line 456 of file catch.hpp.

#define CATCH_NULL   NULL

Definition at line 301 of file catch.hpp.

#define CATCH_OVERRIDE

Definition at line 308 of file catch.hpp.

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

Definition at line 2724 of file catch.hpp.

#define CATCH_TRANSLATE_EXCEPTION (   signature)    INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )

Definition at line 10490 of file catch.hpp.

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

Definition at line 10444 of file catch.hpp.

Definition at line 10445 of file catch.hpp.

Definition at line 10448 of file catch.hpp.

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

Definition at line 10453 of file catch.hpp.

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

Definition at line 10455 of file catch.hpp.

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

Definition at line 10450 of file catch.hpp.

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

Definition at line 10451 of file catch.hpp.

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

Definition at line 10452 of file catch.hpp.

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

Definition at line 10447 of file catch.hpp.

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

Definition at line 10446 of file catch.hpp.

Definition at line 10478 of file catch.hpp.

#define GENERATE (   expr)    INTERNAL_CATCH_GENERATE( expr )

Definition at line 10486 of file catch.hpp.

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

Definition at line 10500 of file catch.hpp.

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

Definition at line 10458 of file catch.hpp.

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

Definition at line 2084 of file catch.hpp.

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

Definition at line 2515 of file catch.hpp.

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

Definition at line 2079 of file catch.hpp.

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

Definition at line 2159 of file catch.hpp.

#define INTERNAL_CATCH_LINESTR (   line)    INTERNAL_CATCH_LINESTR2( line )

Definition at line 2513 of file catch.hpp.

#define INTERNAL_CATCH_LINESTR2 (   line)    #line

Definition at line 2512 of file catch.hpp.

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

Definition at line 750 of file catch.hpp.

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

Definition at line 2149 of file catch.hpp.

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

Definition at line 2089 of file catch.hpp.

#define INTERNAL_CATCH_REACT (   resultBuilder)
Value:
if( resultBuilder.shouldDebugBreak() ) CATCH_BREAK_INTO_DEBUGGER(); \
    resultBuilder.react();

Definition at line 2060 of file catch.hpp.

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

Definition at line 766 of file catch.hpp.

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

Definition at line 2333 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIFY (   expr)    INTERNAL_CATCH_STRINGIFY2( expr )

Definition at line 72 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIFY2 (   expr)    #expr

Definition at line 71 of file catch.hpp.

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

Definition at line 2065 of file catch.hpp.

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

Definition at line 762 of file catch.hpp.

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

Definition at line 754 of file catch.hpp.

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

Definition at line 746 of file catch.hpp.

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

Definition at line 742 of file catch.hpp.

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

Definition at line 2103 of file catch.hpp.

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

Definition at line 2120 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 2618 of file catch.hpp.

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

Definition at line 2613 of file catch.hpp.

Definition at line 68 of file catch.hpp.

Definition at line 64 of file catch.hpp.

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

Definition at line 63 of file catch.hpp.

#define INTERNAL_CHECK_THAT (   arg,
  matcher,
  resultDisposition,
  macroName 
)
Value:
do { \
        Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #arg ", " #matcher, resultDisposition ); \
        try { \
            std::string matcherAsString = (matcher).toString(); \
            __catchResult \
                .setLhs( Catch::toString( arg ) ) \
                .setRhs( matcherAsString == Catch::Detail::unprintableString ? #matcher : matcherAsString ) \
                .setOp( "matches" ) \
                .setResultType( (matcher).match( arg ) ); \
            __catchResult.captureExpression(); \
        } catch( ... ) { \
            __catchResult.useActiveException( resultDisposition | Catch::ResultDisposition::ContinueOnFailure ); \
        } \
        INTERNAL_CATCH_REACT( __catchResult ) \
    } while( Catch::alwaysFalse() )

Definition at line 2163 of file catch.hpp.

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

Definition at line 10475 of file catch.hpp.

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

Definition at line 10484 of file catch.hpp.

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

Definition at line 10483 of file catch.hpp.

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

Definition at line 10476 of file catch.hpp.

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

Definition at line 10436 of file catch.hpp.

Definition at line 10437 of file catch.hpp.

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

Definition at line 10442 of file catch.hpp.

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

Definition at line 10456 of file catch.hpp.

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

Definition at line 10439 of file catch.hpp.

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

Definition at line 10440 of file catch.hpp.

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

Definition at line 10441 of file catch.hpp.

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

Definition at line 10497 of file catch.hpp.

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

Definition at line 10498 of file catch.hpp.

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

Definition at line 10462 of file catch.hpp.

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

Definition at line 10460 of file catch.hpp.

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

Definition at line 10477 of file catch.hpp.

Definition at line 10479 of file catch.hpp.

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

Definition at line 10473 of file catch.hpp.

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

Definition at line 10474 of file catch.hpp.

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

Definition at line 10503 of file catch.hpp.

Definition at line 2621 of file catch.hpp.

Definition at line 829 of file catch.hpp.

Definition at line 771 of file catch.hpp.

Definition at line 61 of file catch.hpp.

Definition at line 79 of file catch.hpp.

Definition at line 459 of file catch.hpp.

Definition at line 1995 of file catch.hpp.

Definition at line 1291 of file catch.hpp.

Definition at line 1288 of file catch.hpp.

Definition at line 2338 of file catch.hpp.

Definition at line 14 of file catch.hpp.

Definition at line 1958 of file catch.hpp.

Definition at line 2518 of file catch.hpp.

Definition at line 462 of file catch.hpp.

Definition at line 2524 of file catch.hpp.

Definition at line 2044 of file catch.hpp.

Definition at line 2702 of file catch.hpp.

Definition at line 611 of file catch.hpp.

Definition at line 891 of file catch.hpp.

Definition at line 1902 of file catch.hpp.

Definition at line 58 of file catch.hpp.

Definition at line 2726 of file catch.hpp.

Definition at line 1998 of file catch.hpp.

Definition at line 486 of file catch.hpp.

Definition at line 774 of file catch.hpp.

Definition at line 777 of file catch.hpp.

Definition at line 2181 of file catch.hpp.

Definition at line 2184 of file catch.hpp.

Definition at line 2705 of file catch.hpp.

Definition at line 2805 of file catch.hpp.

Definition at line 608 of file catch.hpp.

Definition at line 2282 of file catch.hpp.

Definition at line 1500 of file catch.hpp.

Definition at line 2187 of file catch.hpp.

Definition at line 10459 of file catch.hpp.

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

Definition at line 10501 of file catch.hpp.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07