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 | 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()