CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Classes | Typedefs | Functions
Catch Namespace Reference

Namespaces

 Detail
 
 Generators
 
 Internal
 
 Matchers
 

Classes

struct  AssertionInfo
 
class  AssertionResult
 
struct  AssertionResultData
 
struct  AutoReg
 
class  BetweenGenerator
 
class  CompositeGenerator
 
struct  Counts
 
class  ExceptionTranslatorRegistrar
 
class  ExpressionDecomposer
 
class  ExpressionLhs
 
class  ExpressionResultBuilder
 
struct  FalseType
 
struct  IConfig
 
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  ITestCase
 
struct  ITestCaseRegistry
 
struct  MessageBuilder
 
struct  MessageInfo
 
class  MethodTestCase
 
struct  NameAndDesc
 
class  NonCopyable
 
class  NotImplementedException
 
struct  pluralise
 
class  Ptr
 
struct  ResultAction
 
struct  ResultDisposition
 
struct  ResultWas
 
class  SafeBool
 
class  ScopedMessage
 
class  Section
 
struct  SectionInfo
 
struct  SharedImpl
 
struct  ShowDurations
 
struct  SourceLineInfo
 
struct  StreamEndStop
 
struct  StringMaker
 
struct  StringMaker< R C::* >
 
struct  StringMaker< std::vector< T, Allocator > >
 
struct  StringMaker< T * >
 
class  TestCase
 
struct  TestCaseInfo
 
struct  TestFailureException
 
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)
 
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::string trim (std::string const &str)
 
std::ostream & operator<< (std::ostream &os, SourceLineInfo const &info)
 
bool isTrue (bool value)
 
void throwLogicError (std::string const &message, SourceLineInfo const &locationInfo)
 
template<typename T >
T const & operator+ (T const &value, StreamEndStop)
 
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)
 
bool isDebuggerActive ()
 
void writeToDebugConsole (std::string const &text)
 
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)
 
TestCase makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo)
 

Typedef Documentation

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

Definition at line 2013 of file catch.hpp.

typedef void(* Catch::TestFunction)()

Definition at line 439 of file catch.hpp.

Function Documentation

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

Definition at line 153 of file catch.hpp.

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

Definition at line 160 of file catch.hpp.

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

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

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

Definition at line 1553 of file catch.hpp.

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

Definition at line 1528 of file catch.hpp.

bool Catch::isDebuggerActive ( )
bool Catch::isJustInfo ( int  flags)
inline

Definition at line 909 of file catch.hpp.

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

Definition at line 906 of file catch.hpp.

bool Catch::isTrue ( bool  value)
inline

Definition at line 198 of file catch.hpp.

TestCase Catch::makeTestCase ( ITestCase *  testCase,
std::string const &  className,
std::string const &  name,
std::string const &  description,
SourceLineInfo const &  lineInfo 
)
template<typename T >
T const& Catch::operator+ ( T const &  value,
StreamEndStop   
)

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

bool Catch::shouldContinueOnFailure ( int  flags)
inline

Definition at line 934 of file catch.hpp.

bool Catch::shouldNegate ( int  flags)
inline

Definition at line 935 of file catch.hpp.

bool Catch::shouldSuppressFailure ( int  flags)
inline

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

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

Definition at line 765 of file catch.hpp.

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

Definition at line 769 of file catch.hpp.

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

Definition at line 778 of file catch.hpp.

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

Definition at line 782 of file catch.hpp.

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

Definition at line 786 of file catch.hpp.

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

Definition at line 792 of file catch.hpp.

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

Definition at line 801 of file catch.hpp.

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

Definition at line 805 of file catch.hpp.

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

Definition at line 820 of file catch.hpp.

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

Definition at line 824 of file catch.hpp.

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

Definition at line 830 of file catch.hpp.

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

Definition at line 834 of file catch.hpp.

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

Definition at line 2138 of file catch.hpp.

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