Fraxinus  17.12-rc2
An IGT application
Catch Namespace Reference

Namespaces

 Detail
 
 Generators
 
 Internal
 
 Matchers
 

Classes

struct  AssertionInfo
 
class  AssertionResult
 
struct  AssertionResultData
 
struct  AssertionStats
 
struct  AutoReg
 
class  BetweenGenerator
 
class  CompositeGenerator
 
class  Config
 
struct  ConfigData
 
struct  Counts
 
struct  CumulativeReporterBase
 
class  ExceptionTranslatorRegistrar
 
class  ExpressionDecomposer
 
class  ExpressionLhs
 
class  ExpressionResultBuilder
 
struct  FalseType
 
struct  GroupInfo
 
struct  IConfig
 
struct  IContext
 
struct  IExceptionTranslator
 
struct  IExceptionTranslatorRegistry
 
struct  IfFilterMatches
 
struct  IGenerator
 
struct  IGeneratorInfo
 
struct  IGeneratorsForTest
 
struct  IMutableContext
 
struct  IMutableRegistryHub
 
struct  IRegistryHub
 
struct  IReporter
 
struct  IReporterFactory
 
struct  IReporterRegistry
 
struct  IResultCapture
 
struct  IRunner
 
struct  IShared
 
struct  IStreamingReporter
 
struct  ITestCase
 
struct  ITestCaseRegistry
 
struct  LazyStat
 
struct  MessageBuilder
 
struct  MessageInfo
 
class  MethodTestCase
 
struct  NameAndDesc
 
class  NonCopyable
 
class  NotImplementedException
 
class  Option
 
struct  OutputDebugWriter
 
struct  pluralise
 
class  Ptr
 
struct  ReporterConfig
 
struct  ReporterPreferences
 
struct  ResultAction
 
struct  ResultDisposition
 
struct  ResultWas
 
class  SafeBool
 
class  ScopedMessage
 
class  Section
 
struct  SectionInfo
 
struct  SectionStats
 
struct  SharedImpl
 
struct  ShowDurations
 
struct  SourceLineInfo
 
class  Stream
 
class  StreamBufBase
 
class  StreamBufImpl
 
struct  StreamingReporterBase
 
struct  StringMaker
 
struct  StringMaker< std::vector< T > >
 
struct  StringMaker< T * >
 
class  Tag
 
class  TagExpression
 
class  TagExpressionParser
 
class  TagExtracter
 
class  TagParser
 
class  TagSet
 
class  TestCase
 
class  TestCaseFilter
 
class  TestCaseFilters
 
struct  TestCaseInfo
 
struct  TestCaseStats
 
struct  TestFailureException
 
struct  TestGroupStats
 
struct  TestRunInfo
 
struct  TestRunStats
 
class  Timer
 
struct  Totals
 
struct  TrueType
 
class  ValuesGenerator
 
struct  Verbosity
 
struct  WarnAbout
 

Typedefs

typedef void(* TestFunction) ()
 
typedef std::string(* exceptionTranslateFunction) ()
 

Functions

template<typename ContainerT >
void deleteAll (ContainerT &container)
 
template<typename AssociativeContainerT >
void deleteAllValues (AssociativeContainerT &container)
 
template<typename ContainerT , typename Function >
void forEach (ContainerT &container, Function function)
 
template<typename ContainerT , typename Function >
void forEach (ContainerT const &container, Function function)
 
bool startsWith (std::string const &s, std::string const &prefix)
 
bool endsWith (std::string const &s, std::string const &suffix)
 
bool contains (std::string const &s, std::string const &infix)
 
void toLowerInPlace (std::string &s)
 
std::string toLower (std::string const &s)
 
std::ostream & operator<< (std::ostream &os, SourceLineInfo const &info)
 
bool isTrue (bool value)
 
void throwLogicError (std::string const &message, SourceLineInfo const &locationInfo)
 
IGeneratorsForTestcreateGeneratorsForTest ()
 
IContextgetCurrentContext ()
 
IMutableContextgetCurrentMutableContext ()
 
void cleanUpContext ()
 
Stream createStream (std::string const &streamName)
 
template<typename T >
std::string toString (T const &value)
 converts any type to a string More...
 
std::string toString (std::string const &value)
 
std::string toString (std::wstring const &value)
 
std::string toString (const char *const value)
 
std::string toString (char *const value)
 
std::string toString (int value)
 
std::string toString (unsigned long value)
 
std::string toString (unsigned int value)
 
std::string toString (const double value)
 
std::string toString (bool value)
 
std::string toString (char value)
 
std::string toString (signed char value)
 
std::string toString (unsigned char value)
 
bool isOk (ResultWas::OfType resultType)
 
bool isJustInfo (int flags)
 
ResultDisposition::Flags operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs)
 
bool shouldContinueOnFailure (int flags)
 
bool shouldNegate (int flags)
 
bool shouldSuppressFailure (int flags)
 
TestCase makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo)
 
std::string trim (std::string const &str)
 
IRegistryHubgetRegistryHub ()
 
IMutableRegistryHubgetMutableRegistryHub ()
 
void cleanUp ()
 
std::string translateActiveException ()
 
IResultCapturegetResultCapture ()
 
template<typename MatcherT >
ExpressionResultBuilder expressionResultBuilderFromMatcher (MatcherT const &matcher, std::string const &matcherCallAsString)
 
template<typename MatcherT , typename ArgT >
ExpressionResultBuilder expressionResultBuilderFromMatcher (MatcherT const &matcher, ArgT const &arg, std::string const &matcherCallAsString)
 
template<typename MatcherT , typename ArgT >
ExpressionResultBuilder expressionResultBuilderFromMatcher (MatcherT const &matcher, ArgT *arg, std::string const &matcherCallAsString)
 
template<>
std::string toString< Detail::Approx > (Detail::Approx const &value)
 

Typedef Documentation

typedef std::string(* Catch::exceptionTranslateFunction) ()

Definition at line 3178 of file catch.hpp.

typedef void(* Catch::TestFunction) ()

Definition at line 460 of file catch.hpp.

Function Documentation

void Catch::cleanUp ( )
void Catch::cleanUpContext ( )
bool Catch::contains ( std::string const &  s,
std::string const &  infix 
)
inline

Definition at line 168 of file catch.hpp.

IGeneratorsForTest* Catch::createGeneratorsForTest ( )
Stream Catch::createStream ( std::string const &  streamName)
template<typename ContainerT >
void Catch::deleteAll ( ContainerT &  container)
inline

Definition at line 138 of file catch.hpp.

template<typename AssociativeContainerT >
void Catch::deleteAllValues ( AssociativeContainerT &  container)
inline

Definition at line 145 of file catch.hpp.

bool Catch::endsWith ( std::string const &  s,
std::string const &  suffix 
)
inline

Definition at line 165 of file catch.hpp.

template<typename MatcherT >
ExpressionResultBuilder Catch::expressionResultBuilderFromMatcher ( MatcherT const &  matcher,
std::string const &  matcherCallAsString 
)

Definition at line 2776 of file catch.hpp.

template<typename MatcherT , typename ArgT >
ExpressionResultBuilder Catch::expressionResultBuilderFromMatcher ( MatcherT const &  matcher,
ArgT const &  arg,
std::string const &  matcherCallAsString 
)

Definition at line 2787 of file catch.hpp.

template<typename MatcherT , typename ArgT >
ExpressionResultBuilder Catch::expressionResultBuilderFromMatcher ( MatcherT const &  matcher,
ArgT *  arg,
std::string const &  matcherCallAsString 
)

Definition at line 2796 of file catch.hpp.

template<typename ContainerT , typename Function >
void Catch::forEach ( ContainerT &  container,
Function  function 
)
inline

Definition at line 153 of file catch.hpp.

template<typename ContainerT , typename Function >
void Catch::forEach ( ContainerT const &  container,
Function  function 
)
inline

Definition at line 158 of file catch.hpp.

IContext& Catch::getCurrentContext ( )
IMutableContext& Catch::getCurrentMutableContext ( )
IMutableRegistryHub& Catch::getMutableRegistryHub ( )
IRegistryHub& Catch::getRegistryHub ( )
IResultCapture& Catch::getResultCapture ( )
inline

Definition at line 2771 of file catch.hpp.

bool Catch::isJustInfo ( int  flags)
inline

Definition at line 889 of file catch.hpp.

bool Catch::isOk ( ResultWas::OfType  resultType)
inline

Definition at line 886 of file catch.hpp.

bool Catch::isTrue ( bool  value)
inline

Definition at line 228 of file catch.hpp.

TestCase Catch::makeTestCase ( ITestCase testCase,
std::string const &  className,
std::string const &  name,
std::string const &  description,
SourceLineInfo const &  lineInfo 
)
std::ostream& Catch::operator<< ( std::ostream &  os,
SourceLineInfo const &  info 
)
inline

Definition at line 218 of file catch.hpp.

Definition at line 910 of file catch.hpp.

bool Catch::shouldContinueOnFailure ( int  flags)
inline

Definition at line 914 of file catch.hpp.

bool Catch::shouldNegate ( int  flags)
inline

Definition at line 915 of file catch.hpp.

bool Catch::shouldSuppressFailure ( int  flags)
inline

Definition at line 916 of file catch.hpp.

bool Catch::startsWith ( std::string const &  s,
std::string const &  prefix 
)
inline

Definition at line 162 of file catch.hpp.

void Catch::throwLogicError ( std::string const &  message,
SourceLineInfo const &  locationInfo 
)
inline

Definition at line 230 of file catch.hpp.

std::string Catch::toLower ( std::string const &  s)
inline

Definition at line 174 of file catch.hpp.

void Catch::toLowerInPlace ( std::string &  s)
inline

Definition at line 171 of file catch.hpp.

template<typename T >
std::string Catch::toString ( T const &  value)

converts any type to a string

The default template forwards on to ostringstream - except when an ostringstream overload does not exist - in which case it attempts to detect that and writes {?}. Overload (not specialise) this template for custom typs that you don't want to provide an ostream overload for.

Definition at line 755 of file catch.hpp.

std::string Catch::toString ( std::string const &  value)
inline

Definition at line 761 of file catch.hpp.

std::string Catch::toString ( std::wstring const &  value)
inline

Definition at line 765 of file catch.hpp.

std::string Catch::toString ( const char *const  value)
inline

Definition at line 774 of file catch.hpp.

std::string Catch::toString ( char *const  value)
inline

Definition at line 778 of file catch.hpp.

std::string Catch::toString ( int  value)
inline

Definition at line 782 of file catch.hpp.

std::string Catch::toString ( unsigned long  value)
inline

Definition at line 788 of file catch.hpp.

std::string Catch::toString ( unsigned int  value)
inline

Definition at line 797 of file catch.hpp.

std::string Catch::toString ( const double  value)
inline

Definition at line 801 of file catch.hpp.

std::string Catch::toString ( bool  value)
inline

Definition at line 816 of file catch.hpp.

std::string Catch::toString ( char  value)
inline

Definition at line 820 of file catch.hpp.

std::string Catch::toString ( signed char  value)
inline

Definition at line 826 of file catch.hpp.

std::string Catch::toString ( unsigned char  value)
inline

Definition at line 830 of file catch.hpp.

template<>
std::string Catch::toString< Detail::Approx > ( Detail::Approx const &  value)
inline

Definition at line 3303 of file catch.hpp.

std::string Catch::translateActiveException ( )
std::string Catch::trim ( std::string const &  str)
inline

Definition at line 2727 of file catch.hpp.