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

Namespaces

namespace  detail
namespace  Color
namespace  assertType
namespace  TestCaseFailureReason

Classes

class  String
class  Contains
struct  TestCaseData
struct  AssertData
struct  MessageData
struct  SubcaseSignature
struct  IContextScope
struct  ContextOptions
 OCLINT too many fields. More...
struct  StringMaker
struct  Approx
struct  IsNaN
class  Context
struct  CurrentTestCaseStats
struct  TestCaseException
struct  TestRunStats
struct  QueryData
struct  IReporter

Typedefs

typedef decltype(sizeof(void *)) size_t

Functions

DOCTEST_INTERFACE String operator+ (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator== (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator!= (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator< (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator> (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator<= (const String &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator>= (const String &lhs, const String &rhs)
DOCTEST_INTERFACE String toString (const Contains &in)
DOCTEST_INTERFACE bool operator== (const String &lhs, const Contains &rhs)
DOCTEST_INTERFACE bool operator== (const Contains &lhs, const String &rhs)
DOCTEST_INTERFACE bool operator!= (const String &lhs, const Contains &rhs)
DOCTEST_INTERFACE bool operator!= (const Contains &lhs, const String &rhs)
DOCTEST_INTERFACE const char * assertString (assertType::Enum at)
DOCTEST_INTERFACE const char * failureString (assertType::Enum at)
DOCTEST_INTERFACE const char * skipPathFromFilename (const char *file)
template<typename T>
String toString ()
template<typename T, typename detail::types::enable_if<!detail::should_stringify_as_underlying_type< T >::value, bool >::type = true>
String toString (const DOCTEST_REF_WRAP(T) value)
DOCTEST_INTERFACE String toString (String in)
DOCTEST_INTERFACE String toString (std::nullptr_t)
DOCTEST_INTERFACE String toString (bool in)
DOCTEST_INTERFACE String toString (float in)
DOCTEST_INTERFACE String toString (double in)
DOCTEST_INTERFACE String toString (double long in)
DOCTEST_INTERFACE String toString (char in)
DOCTEST_INTERFACE String toString (char signed in)
DOCTEST_INTERFACE String toString (char unsigned in)
DOCTEST_INTERFACE String toString (short in)
DOCTEST_INTERFACE String toString (short unsigned in)
DOCTEST_INTERFACE String toString (signed in)
DOCTEST_INTERFACE String toString (unsigned in)
DOCTEST_INTERFACE String toString (long in)
DOCTEST_INTERFACE String toString (long unsigned in)
DOCTEST_INTERFACE String toString (long long in)
DOCTEST_INTERFACE String toString (long long unsigned in)
DOCTEST_INTERFACE String toString (const Approx &in)
DOCTEST_INTERFACE const ContextOptionsgetContextOptions ()
DOCTEST_INTERFACE String toString (IsNaN< float > in)
DOCTEST_INTERFACE String toString (IsNaN< double > in)
DOCTEST_INTERFACE String toString (IsNaN< double long > in)
 DOCTEST_DEFINE_DECORATOR (test_suite, const char *, "")
 DOCTEST_DEFINE_DECORATOR (description, const char *, "")
 DOCTEST_DEFINE_DECORATOR (skip, bool, true)
 DOCTEST_DEFINE_DECORATOR (no_breaks, bool, true)
 DOCTEST_DEFINE_DECORATOR (no_output, bool, true)
 DOCTEST_DEFINE_DECORATOR (timeout, double, 0)
 DOCTEST_DEFINE_DECORATOR (may_fail, bool, true)
 DOCTEST_DEFINE_DECORATOR (should_fail, bool, true)
 DOCTEST_DEFINE_DECORATOR (expected_failures, int, 0)
template<typename T>
int registerExceptionTranslator (String(*translateFunction)(T))
template<typename Reporter>
int registerReporter (const char *name, int priority, bool isReporter)

Variables

DOCTEST_INTERFACE bool is_running_in_test
template struct DOCTEST_INTERFACE_DECL IsNaN< float >
template struct DOCTEST_INTERFACE_DECL IsNaN< double >
template struct DOCTEST_INTERFACE_DECL IsNaN< long double >

Typedef Documentation

◆ size_t

typedef decltype(sizeof(void*)) std::size_t

Function Documentation

◆ assertString()

DOCTEST_INTERFACE const char * doctest::assertString ( assertType::Enum at)

◆ DOCTEST_DEFINE_DECORATOR() [1/9]

doctest::DOCTEST_DEFINE_DECORATOR ( description ,
const char * ,
""  )

◆ DOCTEST_DEFINE_DECORATOR() [2/9]

doctest::DOCTEST_DEFINE_DECORATOR ( expected_failures ,
int ,
0  )

◆ DOCTEST_DEFINE_DECORATOR() [3/9]

doctest::DOCTEST_DEFINE_DECORATOR ( may_fail ,
bool ,
true  )

◆ DOCTEST_DEFINE_DECORATOR() [4/9]

doctest::DOCTEST_DEFINE_DECORATOR ( no_breaks ,
bool ,
true  )

◆ DOCTEST_DEFINE_DECORATOR() [5/9]

doctest::DOCTEST_DEFINE_DECORATOR ( no_output ,
bool ,
true  )

◆ DOCTEST_DEFINE_DECORATOR() [6/9]

doctest::DOCTEST_DEFINE_DECORATOR ( should_fail ,
bool ,
true  )

◆ DOCTEST_DEFINE_DECORATOR() [7/9]

doctest::DOCTEST_DEFINE_DECORATOR ( skip ,
bool ,
true  )

◆ DOCTEST_DEFINE_DECORATOR() [8/9]

doctest::DOCTEST_DEFINE_DECORATOR ( test_suite ,
const char * ,
""  )

◆ DOCTEST_DEFINE_DECORATOR() [9/9]

doctest::DOCTEST_DEFINE_DECORATOR ( timeout ,
double ,
0  )

◆ failureString()

DOCTEST_INTERFACE const char * doctest::failureString ( assertType::Enum at)

◆ getContextOptions()

DOCTEST_INTERFACE const ContextOptions * doctest::getContextOptions ( )

◆ operator!=() [1/3]

DOCTEST_INTERFACE bool doctest::operator!= ( const Contains & lhs,
const String & rhs )

◆ operator!=() [2/3]

DOCTEST_INTERFACE bool doctest::operator!= ( const String & lhs,
const Contains & rhs )

◆ operator!=() [3/3]

DOCTEST_INTERFACE bool doctest::operator!= ( const String & lhs,
const String & rhs )

◆ operator+()

DOCTEST_INTERFACE String doctest::operator+ ( const String & lhs,
const String & rhs )

◆ operator<()

DOCTEST_INTERFACE bool doctest::operator< ( const String & lhs,
const String & rhs )

◆ operator<=()

DOCTEST_INTERFACE bool doctest::operator<= ( const String & lhs,
const String & rhs )

◆ operator==() [1/3]

DOCTEST_INTERFACE bool doctest::operator== ( const Contains & lhs,
const String & rhs )

◆ operator==() [2/3]

DOCTEST_INTERFACE bool doctest::operator== ( const String & lhs,
const Contains & rhs )

◆ operator==() [3/3]

DOCTEST_INTERFACE bool doctest::operator== ( const String & lhs,
const String & rhs )

◆ operator>()

DOCTEST_INTERFACE bool doctest::operator> ( const String & lhs,
const String & rhs )

◆ operator>=()

DOCTEST_INTERFACE bool doctest::operator>= ( const String & lhs,
const String & rhs )

◆ registerExceptionTranslator()

template<typename T>
int doctest::registerExceptionTranslator ( String(* translateFunction )(T))

◆ registerReporter()

template<typename Reporter>
int doctest::registerReporter ( const char * name,
int priority,
bool isReporter )

◆ skipPathFromFilename()

DOCTEST_INTERFACE const char * doctest::skipPathFromFilename ( const char * file)

◆ toString() [1/24]

template<typename T>
String doctest::toString ( )

◆ toString() [2/24]

DOCTEST_INTERFACE String doctest::toString ( bool in)

◆ toString() [3/24]

DOCTEST_INTERFACE String doctest::toString ( char in)

◆ toString() [4/24]

DOCTEST_INTERFACE String doctest::toString ( char signed in)

◆ toString() [5/24]

DOCTEST_INTERFACE String doctest::toString ( char unsigned in)

◆ toString() [6/24]

DOCTEST_INTERFACE String doctest::toString ( const Approx & in)

◆ toString() [7/24]

DOCTEST_INTERFACE String doctest::toString ( const Contains & in)

◆ toString() [8/24]

template<typename T, typename detail::types::enable_if<!detail::should_stringify_as_underlying_type< T >::value, bool >::type = true>
String doctest::toString ( const DOCTEST_REF_WRAP(T) value)

◆ toString() [9/24]

DOCTEST_INTERFACE String doctest::toString ( double in)

◆ toString() [10/24]

DOCTEST_INTERFACE String doctest::toString ( double long in)

◆ toString() [11/24]

DOCTEST_INTERFACE String doctest::toString ( float in)

◆ toString() [12/24]

DOCTEST_INTERFACE String doctest::toString ( IsNaN< double > in)

◆ toString() [13/24]

DOCTEST_INTERFACE String doctest::toString ( IsNaN< double long > in)

◆ toString() [14/24]

DOCTEST_INTERFACE String doctest::toString ( IsNaN< float > in)

◆ toString() [15/24]

DOCTEST_INTERFACE String doctest::toString ( long in)

◆ toString() [16/24]

DOCTEST_INTERFACE String doctest::toString ( long long in)

◆ toString() [17/24]

DOCTEST_INTERFACE String doctest::toString ( long long unsigned in)

◆ toString() [18/24]

DOCTEST_INTERFACE String doctest::toString ( long unsigned in)

◆ toString() [19/24]

DOCTEST_INTERFACE String doctest::toString ( short in)

◆ toString() [20/24]

DOCTEST_INTERFACE String doctest::toString ( short unsigned in)

◆ toString() [21/24]

DOCTEST_INTERFACE String doctest::toString ( signed in)

◆ toString() [22/24]

DOCTEST_INTERFACE String doctest::toString ( std::nullptr_t )

◆ toString() [23/24]

DOCTEST_INTERFACE String doctest::toString ( String in)

◆ toString() [24/24]

DOCTEST_INTERFACE String doctest::toString ( unsigned in)

Variable Documentation

◆ is_running_in_test

DOCTEST_INTERFACE bool doctest::is_running_in_test
extern

◆ IsNaN< double >

template struct DOCTEST_INTERFACE_DECL doctest::IsNaN< double >
extern

◆ IsNaN< float >

template struct DOCTEST_INTERFACE_DECL doctest::IsNaN< float >
extern

◆ IsNaN< long double >

template struct DOCTEST_INTERFACE_DECL doctest::IsNaN< long double >
extern