LSST Applications g0d97872fb5+4fd969bb9d,g1653933729+34a971ddd9,g28da252d5a+072f89fe25,g2bbee38e9b+a99b0ab4cd,g2bc492864f+a99b0ab4cd,g2ca4be77d2+c0e3b27cd8,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+a99b0ab4cd,g35bb328faa+34a971ddd9,g3a166c0a6a+a99b0ab4cd,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9ed5ed841a,g569e0e2b34+cb4faa46ad,g5a97de2502+520531a62c,g717e5f8c0f+29153700a5,g7ede599f99+367733290c,g80478fca09+17051a22cc,g82479be7b0+f2f1ea0a87,g858d7b2824+29153700a5,g8b782ad322+29153700a5,g8cd86fa7b1+05420e7f7d,g9125e01d80+34a971ddd9,ga5288a1d22+e7f674aaf3,gae0086650b+34a971ddd9,gae74b0b5c6+45ef5cdc51,gb58c049af0+ace264a4f2,gc28159a63d+a99b0ab4cd,gcf0d15dbbd+8051a81198,gda6a2b7d83+8051a81198,gdaeeff99f8+7774323b41,gdf4d240d4a+34a971ddd9,ge2409df99d+cb167bac99,ge33fd446bb+29153700a5,ge79ae78c31+a99b0ab4cd,gf0baf85859+890af219f9,gf5289d68f6+9faa5c5784,w.2024.36
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