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 | Typedefs | Functions
doctest::detail Namespace Reference

Namespaces

namespace  assertAction
 
namespace  binaryAssertComparison
 
namespace  types
 

Classes

class  ContextScope
 
struct  ContextScopeBase
 
struct  deferred_false
 
class  ExceptionTranslator
 OCLINT destructor of virtual class. More...
 
struct  Expression_lhs
 
struct  ExpressionDecomposer
 
struct  filldata
 
struct  filldata< const char[N]>
 
struct  filldata< const void * >
 
struct  filldata< T * >
 
struct  filldata< T[N]>
 
struct  has_insertion_operator
 
struct  has_insertion_operator< T, decltype(operator<<(declval< std::ostream & >(), declval< const T & >()), void())>
 
struct  IExceptionTranslator
 
struct  MessageBuilder
 
struct  RelationalComparator
 
struct  RelationalComparator< 0, L, R >
 
struct  RelationalComparator< 1, L, R >
 
struct  RelationalComparator< 2, L, R >
 
struct  RelationalComparator< 3, L, R >
 
struct  RelationalComparator< 4, L, R >
 
struct  RelationalComparator< 5, L, R >
 
struct  Result
 
struct  ResultBuilder
 
struct  should_stringify_as_underlying_type
 
struct  StringMakerBase
 
struct  StringMakerBase< true >
 
struct  Subcase
 
struct  TestCase
 
struct  TestFailureException
 
struct  TestSuite
 

Typedefs

using funcType = void (*)()
 
using assert_handler = void (*)(const AssertData&)
 
using reporterCreatorFunc = IReporter* (*)(const ContextOptions&)
 

Functions

template<typename T >
T && declval ()
 
template<class T >
constexpr T && forward (typename types::remove_reference< T >::type &t) noexcept
 
template<class T >
constexpr T && forward (typename types::remove_reference< T >::type &&t) noexcept
 
std::ostreamtlssPush ()
 
String tlssPop ()
 
template<typename T >
void filloss (std::ostream *stream, const T &in)
 
template<typename T , size_t N>
void filloss (std::ostream *stream, const T(&in)[N])
 
template<typename T >
String toStream (const T &in)
 
bool checkIfShouldThrow (assertType::Enum at)
 
void throwException ()
 
template<typename L , typename R >
String stringifyBinaryExpr (const L &lhs, const char *op, const R &rhs)
 
template<typename L , typename R >
bool eq (const L &lhs, const R &rhs)
 
template<typename L , typename R >
bool ne (const L &lhs, const R &rhs)
 
template<typename L , typename R >
bool lt (const L &lhs, const R &rhs)
 
template<typename L , typename R >
bool gt (const L &lhs, const R &rhs)
 
template<typename L , typename R >
bool le (const L &lhs, const R &rhs)
 
template<typename L , typename R >
bool ge (const L &lhs, const R &rhs)
 
int regTest (const TestCase &tc)
 
int setTestSuite (const TestSuite &ts)
 
bool isDebuggerActive ()
 
template<typename T >
int instantiationHelper (const T &)
 
void failed_out_of_a_testing_context (const AssertData &ad)
 
bool decomp_assert (assertType::Enum at, const char *file, int line, const char *expr, const Result &result)
 
template<int comparison, typename L , typename R >
 __attribute__ ((noinline)) bool binary_assert(assertType
 
template<typename L >
 __attribute__ ((noinline)) bool unary_assert(assertType
 
void registerExceptionTranslatorImpl (const IExceptionTranslator *et)
 
template<typename L >
ContextScope< L > MakeContextScope (const L &lambda)
 
void registerReporterImpl (const char *name, int prio, reporterCreatorFunc c, bool isReporter)
 
template<typename Reporter >
IReporterreporterCreator (const ContextOptions &o)
 

Typedef Documentation

◆ assert_handler

using doctest::detail::assert_handler = void (*)(const AssertData&)

Definition at line 1960 of file doctest.h.

◆ funcType

using doctest::detail::funcType = void (*)()

Definition at line 1612 of file doctest.h.

◆ reporterCreatorFunc

Definition at line 2099 of file doctest.h.

Function Documentation

◆ __attribute__() [1/2]

template<int comparison, typename L , typename R >
doctest::detail::__attribute__ ( (noinline) )

Definition at line 1764 of file doctest.h.

1766 {
1767 bool failed = !RelationalComparator<comparison, L, R>()(lhs, rhs);
1768
1769 // ###################################################################################
1770 // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT
1771 // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED
1772 // ###################################################################################
1775 return !failed;
1776 }
#define DOCTEST_ASSERT_IN_TESTS(decomp)
Definition doctest.h:1753
#define DOCTEST_ASSERT_OUT_OF_TESTS(decomp)
Definition doctest.h:1736
String stringifyBinaryExpr(const L &lhs, const char *op, const R &rhs)
Definition doctest.h:1354

◆ __attribute__() [2/2]

template<typename L >
doctest::detail::__attribute__ ( (noinline) )

OCLINT bitwise operator in conditional

Definition at line 1779 of file doctest.h.

1780 {
1781 bool failed = !val;
1782
1783 if(at & assertType::is_false)
1784 failed = !failed;
1785
1786 // ###################################################################################
1787 // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT
1788 // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED
1789 // ###################################################################################
1792 return !failed;
1793 }
#define DOCTEST_STRINGIFY(...)
Definition doctest.h:1088
ImageT val
Definition CR.cc:146

◆ checkIfShouldThrow()

bool doctest::detail::checkIfShouldThrow ( assertType::Enum at)

◆ declval()

template<typename T >
T && doctest::detail::declval ( )

◆ decomp_assert()

bool doctest::detail::decomp_assert ( assertType::Enum at,
const char * file,
int line,
const char * expr,
const Result & result )

◆ eq()

template<typename L , typename R >
bool doctest::detail::eq ( const L & lhs,
const R & rhs )

Definition at line 1474 of file doctest.h.

◆ failed_out_of_a_testing_context()

void doctest::detail::failed_out_of_a_testing_context ( const AssertData & ad)

◆ filloss() [1/2]

template<typename T >
void doctest::detail::filloss ( std::ostream * stream,
const T & in )

Definition at line 1052 of file doctest.h.

1052 {
1053 filldata<T>::fill(stream, in);
1054 }

◆ filloss() [2/2]

template<typename T , size_t N>
void doctest::detail::filloss ( std::ostream * stream,
const T(&) in[N] )

Definition at line 1057 of file doctest.h.

1057 { // NOLINT(*-avoid-c-arrays)
1058 // T[N], T(&)[N], T(&&)[N] have same behaviour.
1059 // Hence remove reference.
1060 filloss<typename types::remove_reference<decltype(in)>::type>(stream, in);
1061 }
void filloss(std::ostream *stream, const T &in)
Definition doctest.h:1052

◆ forward() [1/2]

template<class T >
constexpr T && doctest::detail::forward ( typename types::remove_reference< T >::type && t)
constexprnoexcept

Definition at line 988 of file doctest.h.

988 {
989 return static_cast<T&&>(t);
990 }

◆ forward() [2/2]

template<class T >
constexpr T && doctest::detail::forward ( typename types::remove_reference< T >::type & t)
constexprnoexcept

Definition at line 983 of file doctest.h.

983 {
984 return static_cast<T&&>(t);
985 }

◆ ge()

template<typename L , typename R >
bool doctest::detail::ge ( const L & lhs,
const R & rhs )

Definition at line 1479 of file doctest.h.

◆ gt()

template<typename L , typename R >
bool doctest::detail::gt ( const L & lhs,
const R & rhs )

Definition at line 1477 of file doctest.h.

◆ instantiationHelper()

template<typename T >
int doctest::detail::instantiationHelper ( const T & )

Definition at line 1653 of file doctest.h.

1653{ return 0; }

◆ isDebuggerActive()

bool doctest::detail::isDebuggerActive ( )

◆ le()

template<typename L , typename R >
bool doctest::detail::le ( const L & lhs,
const R & rhs )

Definition at line 1478 of file doctest.h.

◆ lt()

template<typename L , typename R >
bool doctest::detail::lt ( const L & lhs,
const R & rhs )

Definition at line 1476 of file doctest.h.

◆ MakeContextScope()

template<typename L >
ContextScope< L > doctest::detail::MakeContextScope ( const L & lambda)

Definition at line 1909 of file doctest.h.

1909 {
1910 return ContextScope<L>(lambda);
1911 }

◆ ne()

template<typename L , typename R >
bool doctest::detail::ne ( const L & lhs,
const R & rhs )

Definition at line 1475 of file doctest.h.

◆ registerExceptionTranslatorImpl()

void doctest::detail::registerExceptionTranslatorImpl ( const IExceptionTranslator * et)

◆ registerReporterImpl()

void doctest::detail::registerReporterImpl ( const char * name,
int prio,
reporterCreatorFunc c,
bool isReporter )

◆ regTest()

int doctest::detail::regTest ( const TestCase & tc)

◆ reporterCreator()

template<typename Reporter >
IReporter * doctest::detail::reporterCreator ( const ContextOptions & o)

Definition at line 2104 of file doctest.h.

2104 {
2105 return new Reporter(o);
2106 }

◆ setTestSuite()

int doctest::detail::setTestSuite ( const TestSuite & ts)

◆ stringifyBinaryExpr()

template<typename L , typename R >
String doctest::detail::stringifyBinaryExpr ( const L & lhs,
const char * op,
const R & rhs )

Definition at line 1354 of file doctest.h.

1355 {
1356 return (DOCTEST_STRINGIFY(lhs)) + op + (DOCTEST_STRINGIFY(rhs));
1357 }

◆ throwException()

void doctest::detail::throwException ( )

◆ tlssPop()

String doctest::detail::tlssPop ( )

◆ tlssPush()

std::ostream * doctest::detail::tlssPush ( )

◆ toStream()

template<typename T >
String doctest::detail::toStream ( const T & in)

Definition at line 1064 of file doctest.h.

1064 {
1065 std::ostream* stream = tlssPush();
1066 filloss(stream, in);
1067 return tlssPop();
1068 }
String tlssPop()
std::ostream * tlssPush()