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 Namespace Reference

Namespace with implementation details, not part of the public API. More...

Classes

struct  and_
 Logical and operator. More...
 
struct  assertion
 An object used to pass assertion parameters to the evaluator. More...
 
class  deferred_reporter
 Class template for a deferred reporter specific to an expression. More...
 
class  deferred_reporter_base
 Base class for a deferred reporter, that collects the messages into a string. More...
 
struct  eq_
 Equality comparator. More...
 
struct  ge_
 Greater than or equal comparator. More...
 
struct  gt_
 Greater than comparator. More...
 
struct  le_
 Less than or equal comparator. More...
 
struct  lt_
 Less than comparator. More...
 
struct  ne_
 Non-equality comparator. More...
 
struct  not_
 Logical not operator. More...
 
struct  nothrow_
 Operator to check if the expression does not throw any exception. More...
 
struct  or_
 Logical or operator. More...
 
struct  throws_
 Operator to check if the expression throws a specific exception. More...
 
struct  throws_< Callable_T, void >
 Operator to check if the expression throws any exception. More...
 

Functions

template<class T >
constexpr auto get (const T &t)
 Generic getter, calling the getter implementation.
 
template<class T >
constexpr auto get_impl (const T &t, int) -> decltype(t.get())
 Generic getter implementation. If the type has a get() method, call it. It is recommended for custom types to define a get() method.
 
template<class T >
constexpr auto get_impl (const T &t,...) -> decltype(auto)
 Variadic getter implementation that returns the first argument and discards the rest.
 

Detailed Description

Namespace with implementation details, not part of the public API.

Function Documentation

◆ get()

template<class T >
constexpr auto micro_os_plus::micro_test_plus::detail::get ( const T & t)
constexpr

Generic getter, calling the getter implementation.

Definition at line 89 of file detail.h.

◆ get_impl() [1/2]

template<class T >
constexpr auto micro_os_plus::micro_test_plus::detail::get_impl ( const T & t,
int  ) -> decltype (t.get ())
constexpr

Generic getter implementation. If the type has a get() method, call it. It is recommended for custom types to define a get() method.

Definition at line 68 of file detail.h.

◆ get_impl() [2/2]

template<class T >
constexpr auto micro_os_plus::micro_test_plus::detail::get_impl ( const T & t,
... ) -> decltype (auto)
constexpr

Variadic getter implementation that returns the first argument and discards the rest.

Definition at line 79 of file detail.h.