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
Public Member Functions | Public Attributes | List of all members
doctest::detail::ResultBuilder Struct Reference

#include <doctest.h>

Inheritance diagram for doctest::detail::ResultBuilder:
doctest::AssertData

Public Member Functions

 ResultBuilder (assertType::Enum at, const char *file, int line, const char *expr, const char *exception_type="", const String &exception_string="")
 
 ResultBuilder (assertType::Enum at, const char *file, int line, const char *expr, const char *exception_type, const Contains &exception_string)
 
void setResult (const Result &res)
 
template<int comparison, typename L , typename R >
 __attribute__ ((noinline)) bool binary_assert(const L &lhs
 
 if (m_failed||getContextOptions() ->success)
 
template<typename L >
 __attribute__ ((noinline)) bool unary_assert(const L &val)
 
void translateException ()
 
bool log ()
 
void react () const
 

Public Attributes

const R & rhs
 
return !m_failed
 
const TestCaseDatam_test_case
 
assertType::Enum m_at
 
const char * m_file
 
int m_line
 
const char * m_expr
 
bool m_failed
 
bool m_threw
 
String m_exception
 
String m_decomp
 
bool m_threw_as
 
const char * m_exception_type
 
class doctest::AssertData::StringContains m_exception_string
 

Detailed Description

Definition at line 1681 of file doctest.h.

Constructor & Destructor Documentation

◆ ResultBuilder() [1/2]

doctest::detail::ResultBuilder::ResultBuilder ( assertType::Enum at,
const char * file,
int line,
const char * expr,
const char * exception_type = "",
const String & exception_string = "" )

◆ ResultBuilder() [2/2]

doctest::detail::ResultBuilder::ResultBuilder ( assertType::Enum at,
const char * file,
int line,
const char * expr,
const char * exception_type,
const Contains & exception_string )

Member Function Documentation

◆ __attribute__() [1/2]

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

◆ __attribute__() [2/2]

template<typename L >
doctest::detail::ResultBuilder::__attribute__ ( (noinline) ) const &
inline

OCLINT bitwise operator in conditional

Definition at line 1702 of file doctest.h.

1702 {
1703 m_failed = !val;
1704
1705 if (m_at & assertType::is_false) {
1706 m_failed = !m_failed;
1707 }
1708
1709 if (m_failed || getContextOptions()->success) {
1711 }
1712
1713 return !m_failed;
1714 }
#define DOCTEST_STRINGIFY(...)
Definition doctest.h:1088
const ContextOptions * getContextOptions()
ImageT val
Definition CR.cc:146
assertType::Enum m_at
Definition doctest.h:828

◆ if()

doctest::detail::ResultBuilder::if ( m_failed||getContextOptions() -> success)
inline

Definition at line 1695 of file doctest.h.

1695 {
1696 m_decomp = stringifyBinaryExpr(lhs, ", ", rhs);
1697 }
String stringifyBinaryExpr(const L &lhs, const char *op, const R &rhs)
Definition doctest.h:1354

◆ log()

bool doctest::detail::ResultBuilder::log ( )

◆ react()

void doctest::detail::ResultBuilder::react ( ) const

◆ setResult()

void doctest::detail::ResultBuilder::setResult ( const Result & res)

◆ translateException()

void doctest::detail::ResultBuilder::translateException ( )

Member Data Documentation

◆ !m_failed

return doctest::detail::ResultBuilder::!m_failed

Definition at line 1698 of file doctest.h.

◆ m_at

assertType::Enum doctest::AssertData::m_at
inherited

Definition at line 828 of file doctest.h.

◆ m_decomp

String doctest::AssertData::m_decomp
inherited

Definition at line 839 of file doctest.h.

◆ m_exception

String doctest::AssertData::m_exception
inherited

Definition at line 836 of file doctest.h.

◆ m_exception_string

class doctest::AssertData::StringContains doctest::AssertData::m_exception_string
inherited

◆ m_exception_type

const char* doctest::AssertData::m_exception_type
inherited

Definition at line 843 of file doctest.h.

◆ m_expr

const char* doctest::AssertData::m_expr
inherited

Definition at line 831 of file doctest.h.

◆ m_failed

bool doctest::AssertData::m_failed
inherited

Definition at line 832 of file doctest.h.

◆ m_file

const char* doctest::AssertData::m_file
inherited

Definition at line 829 of file doctest.h.

◆ m_line

int doctest::AssertData::m_line
inherited

Definition at line 830 of file doctest.h.

◆ m_test_case

const TestCaseData* doctest::AssertData::m_test_case
inherited

Definition at line 827 of file doctest.h.

◆ m_threw

bool doctest::AssertData::m_threw
inherited

Definition at line 835 of file doctest.h.

◆ m_threw_as

bool doctest::AssertData::m_threw_as
inherited

Definition at line 842 of file doctest.h.

◆ rhs

const R& doctest::detail::ResultBuilder::rhs
Initial value:
{
m_failed = !RelationalComparator<comparison, L, R>()(lhs, rhs)

Definition at line 1693 of file doctest.h.


The documentation for this struct was generated from the following file: