Fission FSN
Loading...
Searching...
No Matches
doctest::detail Namespace Reference

Namespaces

namespace  types
namespace  binaryAssertComparison
namespace  assertAction

Classes

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

Typedefs

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

Functions

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 = void (*)(const AssertData&)

◆ funcType

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

◆ reporterCreatorFunc

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 )

◆ checkIfShouldThrow()

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

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

◆ filloss() [2/2]

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

◆ forward() [1/2]

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

◆ forward() [2/2]

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

◆ instantiationHelper()

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

◆ isDebuggerActive()

DOCTEST_INTERFACE bool doctest::detail::isDebuggerActive ( )

◆ MakeContextScope()

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

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

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

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

◆ 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

Variable Documentation

◆ TestCase

struct DOCTEST_INTERFACE doctest::detail::TestCase