CppUnit project page CppUnit home page

Assertion support


Classes

struct  CppUT::EqualityTraits< AType, BType >
struct  CppUT::NoSpecificEqualityTest
struct  CppUT::DefaultStringizer< ValueType >
 A generic functor that can be used to convert a value into a string.

It is used as default argument by function template that allow the user to pass a specific functor to convert data to string. More...

struct  CppUT::RefStringizer< ValueType >
struct  CppUT::DerefStringizer< ValueType >
struct  CppUT::NotConvertibleToStdString

Functions

NoSpecificEqualityTest CppUT::isEqual (...)
template<typename AType, typename BType>
implementation_detail bool CppUT::equalityTest (const AType &a, const BType &b)
std::string CppUT::getStdString (const char *cstr)
std::string CppUT::getStdString (const std::string &s)
std::string CppUT::getStdString (const CppTL::ConstString &s)
template<class T>
NotConvertibleToStdString CppUT::getStdString (const T &)
template<class StringType>
std::string CppUT::convertToString (const StringType &s)
template<typename ValueType>
implementation_detail std::string CppUT::stringize (const ValueType &value)
template<typename ValueType>
std::string CppUT::defaultStringize (const ValueType &value)

Function Documentation

template<class StringType>
std::string CppUT::convertToString ( const StringType &  s  )  [inline]

template<typename ValueType>
std::string CppUT::defaultStringize ( const ValueType &  value  )  [inline]

template<typename AType, typename BType>
implementation_detail bool CppUT::equalityTest ( const AType &  a,
const BType &  b 
) [inline]

Todo:
change implementation to match stringize.
Todo:
delegate to compareTest() => <0, == 0, > 0. Would allow comparison assertions.

References CppUT::isEqual().

Referenced by CppUT::checkEquals(), CppUT::checkNotEquals(), CppUT::RefComparator< AType, BType >::operator()(), and CppUT::DefaultComparator< AType, BType >::operator()().

template<class T>
NotConvertibleToStdString CppUT::getStdString ( const T &   )  [inline]

std::string CppUT::getStdString ( const CppTL::ConstString s  )  [inline]

std::string CppUT::getStdString ( const std::string &  s  )  [inline]

std::string CppUT::getStdString ( const char *  cstr  )  [inline]

NoSpecificEqualityTest CppUT::isEqual (   ...  )  [inline]

Referenced by CppUT::equalityTest().

template<typename ValueType>
implementation_detail std::string CppUT::stringize ( const ValueType &  value  )  [inline]


SourceForge Logo hosts this site. Send comments to:
CppUnit Developers