micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::deferred_reporter< Expr_T > Class Template Reference

Class template for a deferred reporter specific to an expression. More...

#include <micro-os-plus/micro-test-plus.h>

+ Inheritance diagram for micro_os_plus::micro_test_plus::detail::deferred_reporter< Expr_T >:

Public Member Functions

constexpr deferred_reporter (const Expr_T &expr, bool abort, const reflection::source_location &location)
 
 ~deferred_reporter ()
 
template<class T >
auto & operator<< (const T &msg)
 
constexpr bool value () const
 

Protected Attributes

bool abort_ = false
 
const Expr_T expr_ {}
 
const reflection::source_location location_ {}
 
std::string message_ {}
 String to collect the expectation message passed via operator<<().
 
bool value_ {}
 

Detailed Description

template<class Expr_T>
class micro_os_plus::micro_test_plus::detail::deferred_reporter< Expr_T >

Class template for a deferred reporter specific to an expression.

Definition at line 735 of file detail.h.

Constructor & Destructor Documentation

◆ deferred_reporter()

template<class Expr_T >
constexpr micro_os_plus::micro_test_plus::detail::deferred_reporter< Expr_T >::deferred_reporter ( const Expr_T & expr,
bool abort,
const reflection::source_location & location )
explicitconstexpr

Definition at line 122 of file inlines.h.

◆ ~deferred_reporter()

Definition at line 135 of file inlines.h.

Member Function Documentation

◆ operator<<()

template<class T >
auto & micro_os_plus::micro_test_plus::detail::deferred_reporter_base::operator<< ( const T & msg)
inherited

Definition at line 105 of file inlines.h.

◆ value()

constexpr bool micro_os_plus::micro_test_plus::detail::deferred_reporter_base::value ( ) const
inlineconstexprinherited

Definition at line 712 of file detail.h.

Member Data Documentation

◆ abort_

bool micro_os_plus::micro_test_plus::detail::deferred_reporter_base::abort_ = false
protectedinherited

Definition at line 719 of file detail.h.

◆ expr_

template<class Expr_T >
const Expr_T micro_os_plus::micro_test_plus::detail::deferred_reporter< Expr_T >::expr_ {}
protected

Definition at line 745 of file detail.h.

◆ location_

const reflection::source_location micro_os_plus::micro_test_plus::detail::deferred_reporter_base::location_ {}
protectedinherited

Definition at line 720 of file detail.h.

◆ message_

std::string micro_os_plus::micro_test_plus::detail::deferred_reporter_base::message_ {}
protectedinherited

String to collect the expectation message passed via operator<<().

Definition at line 726 of file detail.h.

◆ value_

bool micro_os_plus::micro_test_plus::detail::deferred_reporter_base::value_ {}
protectedinherited

Definition at line 718 of file detail.h.


The documentation for this class was generated from the following files: