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 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
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::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::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( " And: " desc, "" )
#define AND_WHEN(desc)   SECTION( "And when: " desc, "" )
#define ANON_TEST_CASE()   INTERNAL_CATCH_TESTCASE( "", "" )
#define CAPTURE(msg)   INTERNAL_CATCH_INFO( #msg " := " << msg, "CAPTURE" )
#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_NOEXCEPT   throw()
#define CATCH_NOEXCEPT_IS(x)
#define CATCH_NOT_IMPLEMENTED   throw Catch::NotImplementedException( CATCH_INTERNAL_LINEINFO )
#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 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( " 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_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)
#define INTERNAL_CATCH_TESTCASE(Name, Desc)
#define INTERNAL_CATCH_THROWS(expr, resultDisposition, macroName)
#define INTERNAL_CATCH_THROWS_AS(expr, exceptionType, resultDisposition, macroName)
#define INTERNAL_CATCH_TRANSLATE_EXCEPTION(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 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 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( " 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_REENABLE_WARNINGS_H_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_SUPPRESS_WARNINGS_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( " When: " desc, "" )

Typedefs

typedef std::string(* Catch::exceptionTranslateFunction )()
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< T > Catch::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)
Impl::StdString::Contains Catch::Matchers::Contains (const char *substr)
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)
Impl::StdString::Equals Catch::Matchers::Equals (const char *str)
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)
template<typename T >
std::string Catch::Detail::makeString (T const &value)
std::string Catch::Matchers::Impl::StdString::makeString (std::string const &str)
std::string Catch::Matchers::Impl::StdString::makeString (const char *str)
TestCase Catch::makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo)
template<typename T >
T & Catch::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)
bool Catch::replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis)
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 (char 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< T > Catch::Generators::values (T val1, T val2)
template<typename T >
CompositeGenerator< T > Catch::Generators::values (T val1, T val2, T val3)
template<typename T >
CompositeGenerator< T > Catch::Generators::values (T val1, T val2, T val3, T val4)
void Catch::writeToDebugConsole (std::string const &text)

Variables

std::string Catch::Detail::unprintableString

Define Documentation

#define AND_THEN (   desc)    SECTION( " And: " desc, "" )

Definition at line 9397 of file catch.hpp.

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

Definition at line 9395 of file catch.hpp.

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

Definition at line 9374 of file catch.hpp.

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

Definition at line 9356 of file catch.hpp.

Definition at line 1545 of file catch.hpp.

Definition at line 331 of file catch.hpp.

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

Definition at line 330 of file catch.hpp.

#define CATCH_NOEXCEPT   throw()

Definition at line 223 of file catch.hpp.

#define CATCH_NOEXCEPT_IS (   x)

Definition at line 224 of file catch.hpp.

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

#define CATCH_TRANSLATE_EXCEPTION (   signature)    INTERNAL_CATCH_TRANSLATE_EXCEPTION( signature )

Definition at line 9383 of file catch.hpp.

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

Definition at line 9340 of file catch.hpp.

Definition at line 9341 of file catch.hpp.

Definition at line 9344 of file catch.hpp.

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

Definition at line 9348 of file catch.hpp.

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

Definition at line 9350 of file catch.hpp.

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

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

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

Definition at line 9343 of file catch.hpp.

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

Definition at line 9342 of file catch.hpp.

Definition at line 9371 of file catch.hpp.

#define GENERATE (   expr)    INTERNAL_CATCH_GENERATE( expr )

Definition at line 9379 of file catch.hpp.

#define GIVEN (   desc)    SECTION( " Given: " desc, "" )

Definition at line 9393 of file catch.hpp.

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

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

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

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

Definition at line 1663 of file catch.hpp.

#define INTERNAL_CATCH_LINESTR (   line)    INTERNAL_CATCH_LINESTR2( line )

Definition at line 2007 of file catch.hpp.

#define INTERNAL_CATCH_LINESTR2 (   line)    #line

Definition at line 2006 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 626 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 1653 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 1593 of file catch.hpp.

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

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

#define INTERNAL_CATCH_STRINGIFY (   expr)    INTERNAL_CATCH_STRINGIFY2( expr )

Definition at line 70 of file catch.hpp.

#define INTERNAL_CATCH_STRINGIFY2 (   expr)    #expr

Definition at line 69 of file catch.hpp.

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

Definition at line 1570 of file catch.hpp.

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

Definition at line 630 of file catch.hpp.

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

Definition at line 620 of file catch.hpp.

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

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

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

Definition at line 2099 of file catch.hpp.

Definition at line 67 of file catch.hpp.

Definition at line 66 of file catch.hpp.

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

Definition at line 65 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 = ::Catch::Matchers::matcher.toString(); \
            __catchResult \
                .setLhs( Catch::toString( arg ) ) \
                .setRhs( matcherAsString == Catch::Detail::unprintableString ? #matcher : matcherAsString ) \
                .setOp( "matches" ) \
                .setResultType( ::Catch::Matchers::matcher.match( arg ) ); \
            __catchResult.captureExpression(); \
        } catch( ... ) { \
            __catchResult.useActiveException( resultDisposition | Catch::ResultDisposition::ContinueOnFailure ); \
        } \
        INTERNAL_CATCH_REACT( __catchResult ) \
    } while( Catch::alwaysFalse() )

Definition at line 1667 of file catch.hpp.

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

Definition at line 9369 of file catch.hpp.

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

Definition at line 9377 of file catch.hpp.

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

Definition at line 9376 of file catch.hpp.

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

Definition at line 9333 of file catch.hpp.

Definition at line 9334 of file catch.hpp.

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

Definition at line 9338 of file catch.hpp.

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

Definition at line 9351 of file catch.hpp.

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

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

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

Definition at line 9390 of file catch.hpp.

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

Definition at line 9391 of file catch.hpp.

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

Definition at line 9357 of file catch.hpp.

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

Definition at line 9355 of file catch.hpp.

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

Definition at line 9370 of file catch.hpp.

Definition at line 9372 of file catch.hpp.

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

Definition at line 9367 of file catch.hpp.

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

Definition at line 9368 of file catch.hpp.

#define THEN (   desc)    SECTION( " Then: " desc, "" )

Definition at line 9396 of file catch.hpp.

Definition at line 2105 of file catch.hpp.

Definition at line 700 of file catch.hpp.

Definition at line 642 of file catch.hpp.

Definition at line 63 of file catch.hpp.

Definition at line 77 of file catch.hpp.

Definition at line 358 of file catch.hpp.

Definition at line 1500 of file catch.hpp.

Definition at line 841 of file catch.hpp.

Definition at line 838 of file catch.hpp.

Definition at line 1832 of file catch.hpp.

Definition at line 14 of file catch.hpp.

Definition at line 1465 of file catch.hpp.

Definition at line 2012 of file catch.hpp.

Definition at line 361 of file catch.hpp.

Definition at line 2016 of file catch.hpp.

Definition at line 1549 of file catch.hpp.

Definition at line 2411 of file catch.hpp.

Definition at line 511 of file catch.hpp.

Definition at line 2186 of file catch.hpp.

Definition at line 1409 of file catch.hpp.

Definition at line 60 of file catch.hpp.

Definition at line 2435 of file catch.hpp.

Definition at line 1503 of file catch.hpp.

Definition at line 385 of file catch.hpp.

Definition at line 9403 of file catch.hpp.

Definition at line 645 of file catch.hpp.

Definition at line 648 of file catch.hpp.

Definition at line 1685 of file catch.hpp.

Definition at line 1688 of file catch.hpp.

Definition at line 24 of file catch.hpp.

Definition at line 2414 of file catch.hpp.

Definition at line 2514 of file catch.hpp.

Definition at line 508 of file catch.hpp.

Definition at line 1776 of file catch.hpp.

Definition at line 1012 of file catch.hpp.

Definition at line 1706 of file catch.hpp.

Definition at line 9354 of file catch.hpp.

#define WHEN (   desc)    SECTION( " When: " desc, "" )

Definition at line 9394 of file catch.hpp.



librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:40