Namespaces | Classes | Typedefs | Functions
Catch Namespace Reference

Namespaces

namespace  Detail
namespace  Generators
namespace  Internal
namespace  Matchers

Classes

struct  AssertionInfo
class  AssertionResult
struct  AssertionResultData
struct  AutoReg
class  BetweenGenerator
struct  CaseSensitive
class  CompositeGenerator
struct  CopyableStream
struct  Counts
class  ExceptionTranslatorRegistrar
class  ExpressionLhs
struct  IContext
struct  IExceptionTranslator
struct  IExceptionTranslatorRegistry
struct  IGenerator
struct  IGeneratorInfo
struct  IGeneratorsForTest
struct  IMutableContext
struct  IMutableRegistryHub
struct  IRegistryHub
struct  IResultCapture
struct  IRunner
struct  IShared
struct  ITagAliasRegistry
struct  ITestCase
struct  ITestCaseRegistry
struct  MessageBuilder
struct  MessageInfo
class  MethodTestCase
struct  NameAndDesc
class  NonCopyable
class  NotImplementedException
class  Option
struct  pluralise
class  Ptr
struct  RegistrarForTagAliases
class  ResultBuilder
struct  ResultDisposition
struct  ResultWas
class  SafeBool
class  ScopedMessage
class  Section
struct  SectionEndInfo
struct  SectionInfo
struct  SharedImpl
struct  SourceLineInfo
struct  StreamEndStop
struct  StringMaker
struct  StringMaker< R C::* >
struct  StringMaker< T * >
struct  TagAlias
class  TestCase
struct  TestCaseInfo
struct  TestFailureException
class  Timer
struct  Totals
class  ValuesGenerator

Typedefs

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

Functions

bool alwaysFalse ()
bool alwaysTrue ()
void cleanUp ()
void cleanUpContext ()
bool contains (std::string const &s, std::string const &infix)
IGeneratorsForTestcreateGeneratorsForTest ()
Stream createStream (std::string const &streamName)
template<typename ContainerT >
void deleteAll (ContainerT &container)
template<typename AssociativeContainerT >
void deleteAllValues (AssociativeContainerT &container)
bool endsWith (std::string const &s, std::string const &suffix)
std::vector< TestCasefilterTests (std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config)
std::vector< TestCase > const & getAllTestCasesSorted (IConfig const &config)
IContextgetCurrentContext ()
IMutableContextgetCurrentMutableContext ()
IMutableRegistryHubgetMutableRegistryHub ()
IRegistryHubgetRegistryHub ()
IResultCapturegetResultCapture ()
bool isDebuggerActive ()
bool isFalseTest (int flags)
bool isJustInfo (int flags)
bool isOk (ResultWas::OfType resultType)
bool isTrue (bool value)
TestCase makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo)
bool matchTest (TestCase const &testCase, TestSpec const &testSpec, IConfig const &config)
template<typename T >
T const & operator+ (T const &value, StreamEndStop)
std::ostream & operator<< (std::ostream &os, SourceLineInfo const &info)
ResultDisposition::Flags operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs)
void registerTestCase (ITestCase *testCase, char const *className, NameAndDesc const &nameAndDesc, SourceLineInfo const &lineInfo)
void registerTestCaseFunction (TestFunction function, SourceLineInfo const &lineInfo, NameAndDesc const &nameAndDesc)
bool replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis)
unsigned int rngSeed ()
void seedRng (IConfig const &config)
bool shouldContinueOnFailure (int flags)
bool shouldSuppressFailure (int flags)
bool startsWith (std::string const &s, std::string const &prefix)
void throwLogicError (std::string const &message, SourceLineInfo const &locationInfo)
std::string toLower (std::string const &s)
void toLowerInPlace (std::string &s)
template<typename T >
std::string toString (T const &value)
 converts any type to a string
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 (const wchar_t *const value)
std::string toString (wchar_t *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 (const float value)
std::string toString (bool value)
std::string toString (signed char value)
std::string toString (unsigned char value)
template<typename T , typename Allocator >
std::string toString (std::vector< T, Allocator > const &v)
template<>
std::string toString< Detail::Approx > (Detail::Approx const &value)
std::string translateActiveException ()
std::string trim (std::string const &str)
void writeToDebugConsole (std::string const &text)

Typedef Documentation

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

Definition at line 2562 of file catch.hpp.

Definition at line 2564 of file catch.hpp.

typedef void(* Catch::TestFunction)()

Definition at line 659 of file catch.hpp.


Function Documentation

bool Catch::alwaysFalse ( ) [inline]

Definition at line 409 of file catch.hpp.

bool Catch::alwaysTrue ( ) [inline]

Definition at line 408 of file catch.hpp.

void Catch::cleanUp ( )
bool Catch::contains ( std::string const &  s,
std::string const &  infix 
)
Stream Catch::createStream ( std::string const &  streamName)
template<typename ContainerT >
void Catch::deleteAll ( ContainerT &  container) [inline]

Definition at line 355 of file catch.hpp.

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

Definition at line 362 of file catch.hpp.

bool Catch::endsWith ( std::string const &  s,
std::string const &  suffix 
)
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)
bool Catch::isFalseTest ( int  flags) [inline]

Definition at line 823 of file catch.hpp.

bool Catch::isJustInfo ( int  flags) [inline]

Definition at line 805 of file catch.hpp.

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

Definition at line 802 of file catch.hpp.

bool Catch::isTrue ( bool  value) [inline]

Definition at line 407 of file catch.hpp.

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 T >
T const& Catch::operator+ ( T const &  value,
StreamEndStop   
)

Definition at line 426 of file catch.hpp.

std::ostream& Catch::operator<< ( std::ostream &  os,
SourceLineInfo const &  info 
)
ResultDisposition::Flags Catch::operator| ( ResultDisposition::Flags  lhs,
ResultDisposition::Flags  rhs 
) [inline]

Definition at line 818 of file catch.hpp.

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) [inline]

Definition at line 822 of file catch.hpp.

bool Catch::shouldSuppressFailure ( int  flags) [inline]

Definition at line 824 of file catch.hpp.

bool Catch::startsWith ( std::string const &  s,
std::string const &  prefix 
)
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

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 1776 of file catch.hpp.

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)

Definition at line 1715 of file catch.hpp.

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

Definition at line 2695 of file catch.hpp.

std::string Catch::trim ( std::string const &  str)
void Catch::writeToDebugConsole ( std::string const &  text)


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