LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
doctest Namespace Reference

Namespaces

namespace  assertType
 
namespace  Color
 
namespace  detail
 
namespace  TestCaseFailureReason
 

Classes

struct  Approx
 
struct  AssertData
 
class  Contains
 
class  Context
 
struct  ContextOptions
 OCLINT too many fields. More...
 
struct  CurrentTestCaseStats
 
struct  description
 
struct  expected_failures
 
struct  IContextScope
 
struct  IReporter
 
struct  IsNaN
 
struct  may_fail
 
struct  MessageData
 
struct  no_breaks
 
struct  no_output
 
struct  QueryData
 
struct  should_fail
 
struct  skip
 
class  String
 
struct  StringMaker
 
struct  SubcaseSignature
 
struct  test_suite
 
struct  TestCaseData
 
struct  TestCaseException
 
struct  TestRunStats
 
struct  timeout
 

Functions

String 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)
 
bool operator>= (const String &lhs, const String &rhs)
 
String toString (const Contains &in)
 
bool operator== (const String &lhs, const Contains &rhs)
 
bool operator== (const Contains &lhs, const String &rhs)
 
bool operator!= (const String &lhs, const Contains &rhs)
 
bool operator!= (const Contains &lhs, const String &rhs)
 
const char * assertString (assertType::Enum at)
 
const char * failureString (assertType::Enum at)
 
const char * skipPathFromFilename (const char *file)
 
template<typename T >
String toString ()
 
template<typename T , typename detail::types::enable_if<!detail::should_stringify_as_underlying_type< T >::value, bool >::type = true>
String toString (const T &value)
 
String toString (String in)
 
String toString (std::nullptr_t)
 
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 (short in)
 
String toString (short unsigned in)
 
String toString (signed in)
 
String toString (unsigned in)
 
String toString (long in)
 
String toString (long unsigned in)
 
String toString (long long in)
 
String toString (long long unsigned in)
 
String toString (const Approx &in)
 
const ContextOptionsgetContextOptions ()
 
String toString (IsNaN< float > in)
 
String toString (IsNaN< double > in)
 
String toString (IsNaN< double long > in)
 
template<typename T >
int registerExceptionTranslator (String(*translateFunction)(T))
 
template<typename Reporter >
int registerReporter (const char *name, int priority, bool isReporter)
 

Variables

bool is_running_in_test
 

Function Documentation

◆ assertString()

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

◆ failureString()

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

◆ getContextOptions()

const ContextOptions * doctest::getContextOptions ( )

◆ operator!=() [1/3]

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

◆ operator!=() [2/3]

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

◆ operator!=() [3/3]

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

◆ operator+()

String 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==() [1/3]

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

◆ operator==() [2/3]

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

◆ operator==() [3/3]

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 1935 of file doctest.h.

1935 {
1936 DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wexit-time-destructors")
1937 static detail::ExceptionTranslator<T> exceptionTranslator(translateFunction);
1939 detail::registerExceptionTranslatorImpl(&exceptionTranslator);
1940 return 0;
1941}
#define DOCTEST_CLANG_SUPPRESS_WARNING_POP
Definition doctest.h:125
#define DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH(w)
Definition doctest.h:126

◆ registerReporter()

template<typename Reporter >
int doctest::registerReporter ( const char * name,
int priority,
bool isReporter )

Definition at line 2110 of file doctest.h.

2110 {
2111 detail::registerReporterImpl(name, priority, detail::reporterCreator<Reporter>, isReporter);
2112 return 0;
2113}

◆ skipPathFromFilename()

const char * doctest::skipPathFromFilename ( const char * file)

◆ toString() [1/24]

template<typename T >
String doctest::toString ( )

Definition at line 1093 of file doctest.h.

1093 {
1094#if DOCTEST_CLANG == 0 && DOCTEST_GCC == 0 && DOCTEST_ICC == 0
1095 String ret = __FUNCSIG__; // class doctest::String __cdecl doctest::toString<TYPE>(void)
1096 String::size_type beginPos = ret.find('<');
1097 return ret.substr(beginPos + 1, ret.size() - beginPos - static_cast<String::size_type>(sizeof(">(void)")));
1098#else
1099 String ret = __PRETTY_FUNCTION__; // doctest::String toString() [with T = TYPE]
1100 String::size_type begin = ret.find('=') + 2;
1101 return ret.substr(begin, ret.size() - begin - 1);
1102#endif
1103}
String substr(size_type pos, size_type cnt=npos) &&
size_type find(char ch, size_type pos=0) const
size_type size() const
unsigned size_type
Definition doctest.h:590

◆ toString() [2/24]

String doctest::toString ( bool in)

◆ toString() [3/24]

String doctest::toString ( char in)

◆ toString() [4/24]

String doctest::toString ( char signed in)

◆ toString() [5/24]

String doctest::toString ( char unsigned in)

◆ toString() [6/24]

String doctest::toString ( const Approx & in)

◆ toString() [7/24]

String doctest::toString ( const Contains & in)

◆ toString() [8/24]

template<typename T , typename detail::types::enable_if<!detail::should_stringify_as_underlying_type< T >::value, bool >::type = true>
String doctest::toString ( const T & value)

Definition at line 1106 of file doctest.h.

1106 {
1107 return StringMaker<T>::convert(value);
1108}

◆ toString() [9/24]

String doctest::toString ( double in)

◆ toString() [10/24]

String doctest::toString ( double long in)

◆ toString() [11/24]

String doctest::toString ( float in)

◆ toString() [12/24]

String doctest::toString ( IsNaN< double > in)

◆ toString() [13/24]

String doctest::toString ( IsNaN< double long > in)

◆ toString() [14/24]

String doctest::toString ( IsNaN< float > in)

◆ toString() [15/24]

String doctest::toString ( long in)

◆ toString() [16/24]

String doctest::toString ( long long in)

◆ toString() [17/24]

String doctest::toString ( long long unsigned in)

◆ toString() [18/24]

String doctest::toString ( long unsigned in)

◆ toString() [19/24]

String doctest::toString ( short in)

◆ toString() [20/24]

String doctest::toString ( short unsigned in)

◆ toString() [21/24]

String doctest::toString ( signed in)

◆ toString() [22/24]

String doctest::toString ( std::nullptr_t )

◆ toString() [23/24]

String doctest::toString ( String in)

◆ toString() [24/24]

String doctest::toString ( unsigned in)

Variable Documentation

◆ is_running_in_test

bool doctest::is_running_in_test
extern