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::throws_< Callable_T, Exception_T > Struct Template Reference

Operator to check if the expression throws a specific exception. More...

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

+ Inheritance diagram for micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >:

Public Member Functions

constexpr throws_ (const Callable_T &func)
 
constexpr operator bool () const
 

Public Attributes

const bool value_ {}
 

Detailed Description

template<class Callable_T, class Exception_T = void>
struct micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >

Operator to check if the expression throws a specific exception.

Definition at line 599 of file detail.h.

Constructor & Destructor Documentation

◆ throws_()

template<class Callable_T , class Exception_T = void>
constexpr micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >::throws_ ( const Callable_T & func)
inlineexplicitconstexpr

Definition at line 601 of file detail.h.

Member Function Documentation

◆ operator bool()

template<class Callable_T , class Exception_T = void>
constexpr micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >::operator bool ( ) const
inlineconstexpr

Definition at line 621 of file detail.h.

Member Data Documentation

◆ value_

template<class Callable_T , class Exception_T = void>
const bool micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >::value_ {}

Definition at line 626 of file detail.h.


The documentation for this struct was generated from the following file: