CellModules
|
Namespaces | |
namespace | Detail |
namespace | Generators |
namespace | Internal |
namespace | Matchers |
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) |
bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
std::ostream & | operator<< (std::ostream &os, SourceLineInfo const &info) |
bool | isTrue (bool value) |
bool | alwaysTrue () |
bool | alwaysFalse () |
void | throwLogicError (std::string const &message, SourceLineInfo const &locationInfo) |
template<typename T > | |
T const & | operator+ (T const &value, StreamEndStop) |
IGeneratorsForTest * | createGeneratorsForTest () |
IContext & | getCurrentContext () |
IMutableContext & | getCurrentMutableContext () |
void | cleanUpContext () |
Stream | createStream (std::string const &streamName) |
bool | isOk (ResultWas::OfType resultType) |
bool | isJustInfo (int flags) |
ResultDisposition::Flags | operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs) |
bool | shouldContinueOnFailure (int flags) |
bool | isFalseTest (int flags) |
bool | shouldSuppressFailure (int flags) |
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 (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 (char 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) |
IResultCapture & | getResultCapture () |
bool | isDebuggerActive () |
void | writeToDebugConsole (std::string const &text) |
IRegistryHub & | getRegistryHub () |
IMutableRegistryHub & | getMutableRegistryHub () |
void | cleanUp () |
std::string | translateActiveException () |
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 std::string(* Catch::exceptionTranslateFunction) () |
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 | ) |
|
inline |
|
inline |
bool Catch::endsWith | ( | std::string const & | s, |
std::string const & | suffix | ||
) |
IContext & Catch::getCurrentContext | ( | ) |
IMutableContext & Catch::getCurrentMutableContext | ( | ) |
IMutableRegistryHub & Catch::getMutableRegistryHub | ( | ) |
IRegistryHub & Catch::getRegistryHub | ( | ) |
IResultCapture & Catch::getResultCapture | ( | ) |
bool Catch::isDebuggerActive | ( | ) |
|
inline |
TestCase Catch::makeTestCase | ( | ITestCase * | testCase, |
std::string const & | className, | ||
std::string const & | name, | ||
std::string const & | description, | ||
SourceLineInfo const & | lineInfo | ||
) |
T const & Catch::operator+ | ( | T const & | value, |
StreamEndStop | |||
) |
std::ostream & Catch::operator<< | ( | std::ostream & | os, |
SourceLineInfo const & | info | ||
) |
|
inline |
bool Catch::replaceInPlace | ( | std::string & | str, |
std::string const & | replaceThis, | ||
std::string const & | withThis | ||
) |
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 | ) |
std::string Catch::toString | ( | bool | value | ) |
std::string Catch::toString | ( | char *const | value | ) |
std::string Catch::toString | ( | char | value | ) |
std::string Catch::toString | ( | const char *const | value | ) |
std::string Catch::toString | ( | const double | value | ) |
std::string Catch::toString | ( | const float | value | ) |
std::string Catch::toString | ( | const wchar_t *const | value | ) |
std::string Catch::toString | ( | int | value | ) |
std::string Catch::toString | ( | signed char | value | ) |
std::string Catch::toString | ( | std::string const & | value | ) |
std::string Catch::toString | ( | std::vector< T, Allocator > const & | v | ) |
std::string Catch::toString | ( | std::wstring const & | value | ) |
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.
std::string Catch::toString | ( | unsigned char | value | ) |
std::string Catch::toString | ( | unsigned int | value | ) |
std::string Catch::toString | ( | unsigned long | value | ) |
std::string Catch::toString | ( | wchar_t *const | value | ) |
|
inline |
std::string Catch::translateActiveException | ( | ) |
std::string Catch::trim | ( | std::string const & | str | ) |
void Catch::writeToDebugConsole | ( | std::string const & | text | ) |