micro-test-plus 4.1.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
detail.h File Reference

C++ header file with declarations for the µTest++ internals. More...

#include <cstdio>
#include <string>
#include "type-traits.h"
#include "reflection.h"
#include "inlines/detail-inlines.h"

Go to the source code of this file.

Classes

struct  micro_os_plus::micro_test_plus::detail::and_< Lhs_T, Rhs_T >
 Logical AND comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::assertion< Expr_T >
 Assertion struct template for parameter passing to the evaluator. More...
struct  micro_os_plus::micro_test_plus::detail::binary_op_< Lhs_T, Rhs_T >
 Common base struct template for binary comparators. More...
struct  micro_os_plus::micro_test_plus::detail::callable_op_
 Common base struct for callable-wrapping operators. More...
struct  micro_os_plus::micro_test_plus::detail::eq_< Lhs_T, Rhs_T >
 Equality comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::ge_< Lhs_T, Rhs_T >
 Greater than or equal comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::gt_< Lhs_T, Rhs_T >
 Greater than comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::le_< Lhs_T, Rhs_T >
 Less than or equal comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::lt_< Lhs_T, Rhs_T >
 Less than comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::ne_< Lhs_T, Rhs_T >
 Non-equality comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::not_< T >
 Logical NOT comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::nothrow_< Callable_T >
 Operator struct template to check if an expression does not throw any exception. More...
struct  micro_os_plus::micro_test_plus::detail::or_< Lhs_T, Rhs_T >
 Logical OR comparator struct template. More...
struct  micro_os_plus::micro_test_plus::detail::throws_< Callable_T, Exception_T >
 Operator struct template to check if an expression throws a specific exception. More...
struct  micro_os_plus::micro_test_plus::detail::throws_< Callable_T, void >
 Operator struct template to check if an expression throws any exception. More...
struct  micro_os_plus::micro_test_plus::detail::unary_op_< T >
 Common base struct template for unary comparators. More...

Namespaces

namespace  micro_os_plus
 The primary namespace for the µOS++ framework.
namespace  micro_os_plus::micro_test_plus
 Primary namespace for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::detail
 Internal implementation details for the µTest++ framework.

Functions

template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::and_ (const Lhs_T &, const Rhs_T &) -> and_< Lhs_T, Rhs_T >
template<class T>
requires std::is_arithmetic_v<T>
void micro_os_plus::micro_test_plus::detail::append_number_ (std::string &buffer, T v)
 Appends the string representation of a numeric value to a buffer, using std::to_chars for allocation-free, locale-independent formatting.
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::eq_ (const Lhs_T &, const Rhs_T &) -> eq_< Lhs_T, Rhs_T >
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::ge_ (const Lhs_T &, const Rhs_T &) -> ge_< Lhs_T, Rhs_T >
template<class T>
constexpr auto micro_os_plus::micro_test_plus::detail::get (const T &t)
 Generic getter function template for value retrieval.
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::gt_ (const Lhs_T &, const Rhs_T &) -> gt_< Lhs_T, Rhs_T >
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::le_ (const Lhs_T &, const Rhs_T &) -> le_< Lhs_T, Rhs_T >
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::lt_ (const Lhs_T &, const Rhs_T &) -> lt_< Lhs_T, Rhs_T >
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::ne_ (const Lhs_T &, const Rhs_T &) -> ne_< Lhs_T, Rhs_T >
template<typename T>
 micro_os_plus::micro_test_plus::detail::not_ (const T &) -> not_< T >
template<typename Lhs_T, typename Rhs_T>
 micro_os_plus::micro_test_plus::detail::or_ (const Lhs_T &, const Rhs_T &) -> or_< Lhs_T, Rhs_T >

Detailed Description

This header provides the declarations for the internal components of the µTest++ framework, encapsulated within the micro_os_plus::micro_test_plus::detail namespace. It defines the core mechanisms, helper structures, and utility templates that underpin the framework's assertion handling, value retrieval, comparator logic, deferred reporting, and exception checking facilities.

All definitions reside within the micro_os_plus::micro_test_plus::detail namespace, ensuring clear separation from user code and minimising the risk of naming conflicts.

The header files are organised within the include/micro-os-plus/micro-test-plus folder to maintain a structured and modular codebase.

This file is intended solely for internal use within the framework and should not be included directly by user code.

Definition in file detail.h.