ManaPlus
Namespaces | Data Structures | Functions
doctest Namespace Reference

Namespaces

 assertType
 
 Color
 
 detail
 
 TestCaseFailureReason
 

Data Structures

class  String
 
struct  TestCaseData
 
struct  AssertData
 
struct  MessageData
 
struct  SubcaseSignature
 
struct  IContextScope
 
struct  ContextOptions
 OCLINT too many fields. More...
 
struct  StringMaker
 
struct  StringMaker< T * >
 
struct  StringMaker< R C::* >
 
class  Approx
 
struct  test_suite
 
struct  description
 
struct  skip
 
struct  timeout
 
struct  may_fail
 
struct  should_fail
 
struct  expected_failures
 
class  Context
 
struct  CurrentTestCaseStats
 
struct  TestRunStats
 
struct  IReporter
 

Functions

bool operator== (const String &lhs, const String &rhs)
 
bool operator!= (const String &lhs, const String &rhs)
 
bool operator< (const String &lhs, const String &rhs)
 
bool operator> (const String &lhs, const String &rhs)
 
bool operator<= (const String &lhs, const String &rhs)
 
bool operator>= (const String &lhs, const String &rhs)
 
std::ostream & operator<< (std::ostream &s, const String &in)
 
const char * assertString (assertType::Enum at)
 
template<typename T >
String toString (const T &value)
 
String toString (bool in)
 
String toString (float in)
 
String toString (double in)
 
String toString (double long in)
 
String toString (char in)
 
String toString (char signed in)
 
String toString (char unsigned in)
 
String toString (int short in)
 
String toString (int short unsigned in)
 
String toString (int in)
 
String toString (int unsigned in)
 
String toString (int long in)
 
String toString (int long unsigned in)
 
String toString (int long long in)
 
String toString (int long long unsigned in)
 
String toString (std::nullptr_t in)
 
String toString (const Approx &in)
 
template<typename T >
int registerExceptionTranslator (String(*translateFunction)(T))
 
bool isRunningInTest ()
 
int registerReporter (const char *name, int priority, IReporter *r)
 

Function Documentation

◆ assertString()

const char* doctest::assertString ( assertType::Enum  at)

◆ isRunningInTest()

bool doctest::isRunningInTest ( )

◆ operator!=()

bool doctest::operator!= ( const String lhs,
const String rhs 
)

◆ operator<()

bool doctest::operator< ( const String lhs,
const String rhs 
)

◆ operator<<()

std::ostream& doctest::operator<< ( std::ostream &  s,
const String in 
)

◆ operator<=()

bool doctest::operator<= ( const String lhs,
const String rhs 
)

◆ operator==()

bool doctest::operator== ( const String lhs,
const String rhs 
)

◆ operator>()

bool doctest::operator> ( const String lhs,
const String rhs 
)

◆ operator>=()

bool doctest::operator>= ( const String lhs,
const String rhs 
)

◆ registerExceptionTranslator()

template<typename T >
int doctest::registerExceptionTranslator ( String(*)(T)  translateFunction)

Definition at line 1672 of file doctest.h.

1672  {
1673  DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wexit-time-destructors")
1674  static detail::ExceptionTranslator<T> exceptionTranslator(translateFunction);
1675  DOCTEST_CLANG_SUPPRESS_WARNING_POP
1676  detail::registerExceptionTranslatorImpl(&exceptionTranslator);
1677  return 0;
1678 }
DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wglobal-constructors") static int _DOCTEST_ANON_VAR___LINE__ __attribute__((unused))
void registerExceptionTranslatorImpl(const IExceptionTranslator *translateFunction)

References DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH(), and doctest::detail::registerExceptionTranslatorImpl().

◆ registerReporter()

int doctest::registerReporter ( const char *  name,
int  priority,
IReporter r 
)

◆ toString() [1/18]

String doctest::toString ( bool  in)

◆ toString() [2/18]

String doctest::toString ( char  in)

◆ toString() [3/18]

String doctest::toString ( char signed  in)

◆ toString() [4/18]

String doctest::toString ( char unsigned  in)

◆ toString() [5/18]

String doctest::toString ( const Approx in)

◆ toString() [6/18]

template<typename T >
String doctest::toString ( const T &  value)

Definition at line 883 of file doctest.h.

883  {
884  return StringMaker<T>::convert(value);
885 }

◆ toString() [7/18]

String doctest::toString ( double  in)

◆ toString() [8/18]

String doctest::toString ( double long  in)

◆ toString() [9/18]

String doctest::toString ( float  in)

◆ toString() [10/18]

String doctest::toString ( int  in)

◆ toString() [11/18]

String doctest::toString ( int long  in)

◆ toString() [12/18]

String doctest::toString ( int long long  in)

◆ toString() [13/18]

String doctest::toString ( int long long unsigned  in)

◆ toString() [14/18]

String doctest::toString ( int long unsigned  in)

◆ toString() [15/18]

String doctest::toString ( int short  in)

◆ toString() [16/18]

String doctest::toString ( int short unsigned  in)

◆ toString() [17/18]

String doctest::toString ( int unsigned  in)

◆ toString() [18/18]

String doctest::toString ( std::nullptr_t  in)