plptools
Loading...
Searching...
No Matches
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  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

static DOCTEST_CONSTEXPR int consume (const int *, int) noexcept
 
template<typename T >
T && declval ()
 
template<class T >
DOCTEST_CONSTEXPR_FUNC T && forward (typename types::remove_reference< T >::type &t) DOCTEST_NOEXCEPT
 
template<class T >
DOCTEST_CONSTEXPR_FUNC T && forward (typename types::remove_reference< T >::type &&t) DOCTEST_NOEXCEPT
 
DOCTEST_INTERFACE std::ostreamtlssPush ()
 
DOCTEST_INTERFACE 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)
 
DOCTEST_INTERFACE bool checkIfShouldThrow (assertType::Enum at)
 
DOCTEST_INTERFACE void throwException ()
 
template<typename L , typename R >
String stringifyBinaryExpr (const DOCTEST_REF_WRAP(L) lhs, const char *op, const DOCTEST_REF_WRAP(R) rhs)
 
DOCTEST_INTERFACE int regTest (const TestCase &tc)
 
DOCTEST_INTERFACE int setTestSuite (const TestSuite &ts)
 
DOCTEST_INTERFACE bool isDebuggerActive ()
 
template<typename T >
int instantiationHelper (const T &)
 
DOCTEST_INTERFACE void failed_out_of_a_testing_context (const AssertData &ad)
 
DOCTEST_INTERFACE bool decomp_assert (assertType::Enum at, const char *file, int line, const char *expr, const Result &result)
 
template<int comparison, typename L , typename R >
DOCTEST_NOINLINE bool binary_assert (assertType::Enum at, const char *file, int line, const char *expr, const DOCTEST_REF_WRAP(L) lhs, const DOCTEST_REF_WRAP(R) rhs)
 
template<typename L >
DOCTEST_NOINLINE bool unary_assert (assertType::Enum at, const char *file, int line, const char *expr, const DOCTEST_REF_WRAP(L) val)
 
DOCTEST_INTERFACE void registerExceptionTranslatorImpl (const IExceptionTranslator *et)
 
template<typename L >
ContextScope< L > MakeContextScope (const L &lambda)
 
DOCTEST_INTERFACE void registerReporterImpl (const char *name, int prio, reporterCreatorFunc c, bool isReporter)
 
template<typename Reporter >
IReporterreporterCreator (const ContextOptions &o)
 

Variables

struct DOCTEST_INTERFACE TestCase
 

Typedef Documentation

◆ assert_handler

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

Definition at line 1961 of file doctest.h.

◆ funcType

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

Definition at line 1613 of file doctest.h.

◆ reporterCreatorFunc

Definition at line 2100 of file doctest.h.

Function Documentation

◆ binary_assert()

template<int comparison, typename L , typename R >
DOCTEST_NOINLINE bool doctest::detail::binary_assert ( assertType::Enum  at,
const char *  file,
int  line,
const char *  expr,
const DOCTEST_REF_WRAP(L)  lhs,
const DOCTEST_REF_WRAP(R)  rhs 
)

Definition at line 1765 of file doctest.h.

◆ checkIfShouldThrow()

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

◆ consume()

static DOCTEST_CONSTEXPR int doctest::detail::consume ( const int *  ,
int   
)
staticnoexcept

Definition at line 447 of file doctest.h.

◆ declval()

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

◆ decomp_assert()

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

◆ failed_out_of_a_testing_context()

DOCTEST_INTERFACE 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 1053 of file doctest.h.

◆ filloss() [2/2]

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

Definition at line 1058 of file doctest.h.

◆ forward() [1/2]

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

Definition at line 989 of file doctest.h.

◆ forward() [2/2]

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

Definition at line 984 of file doctest.h.

◆ instantiationHelper()

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

Definition at line 1654 of file doctest.h.

◆ isDebuggerActive()

DOCTEST_INTERFACE bool doctest::detail::isDebuggerActive ( )

◆ MakeContextScope()

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

Definition at line 1910 of file doctest.h.

◆ registerExceptionTranslatorImpl()

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

◆ registerReporterImpl()

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

◆ regTest()

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

◆ reporterCreator()

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

Definition at line 2105 of file doctest.h.

◆ setTestSuite()

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

◆ stringifyBinaryExpr()

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

Definition at line 1355 of file doctest.h.

◆ throwException()

DOCTEST_INTERFACE void doctest::detail::throwException ( )

◆ tlssPop()

DOCTEST_INTERFACE String doctest::detail::tlssPop ( )

◆ tlssPush()

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

◆ toStream()

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

Definition at line 1065 of file doctest.h.

◆ unary_assert()

template<typename L >
DOCTEST_NOINLINE bool doctest::detail::unary_assert ( assertType::Enum  at,
const char *  file,
int  line,
const char *  expr,
const DOCTEST_REF_WRAP(L)  val 
)

OCLINT bitwise operator in conditional

Definition at line 1780 of file doctest.h.

Variable Documentation

◆ TestCase

Definition at line 890 of file doctest.h.