LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
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