Skip to main content

micro_test_plus Namespace

Primary namespace for the µTest++ testing framework. More...

Definition​

namespace micro_os_plus::micro_test_plus { ... }

Namespaces Index​

namespaceanonymous{runner.cpp}

Local helpers of the runner. More...

namespacedetail

Internal implementation details for the µTest++ framework. More...

namespaceextension

The templates and the concepts for extending the µTest++ testing framework. More...

namespaceliterals

Deprecated user-defined literals of the test checks. More...

namespaceoperators

Deprecated comparison and logical operators of the test checks. More...

namespacereflection

Reflection utilities for the µTest++ testing framework. More...

namespacetype_traits

Deprecated v5.0.1 namespace of the concepts and of the value wrapper templates. More...

namespaceutility

Utility functions for the µTest++ testing framework. More...

Classes Index​

classcounters

Aggregated check and test case counters for a node in the test tree. More...

classlocated_name

A name of a suite or of a test case, with the location where it was given. More...

classrunner

The test runner for the µTest++ framework. More...

classrunner_options

The configuration of a test session, and its command-line parser. More...

classstatic_suite

A test suite designed for static (namespace-scope) registration with a runner. More...

classsuite

A named, runnable test suite registered with the test runner. More...

classtest_case

A named, runnable test case that lives inside a suite. More...

structto_t<T>

Deprecated generic strongly-typed wrapper for explicit type conversion. More...

classtop_suite

The optional top suite owned by every runner instance. More...

Typedefs Index​

usingexpression_formatter = detail::expression_formatter

Public name of the formatter used to report operand values. More...

usingstatic_runner = runner

Deprecated name of runner. More...

usingsubtest = test_case

Deprecated name of test_case. More...

Enumerations Index​

enum classcolour_mode { ... }

The use of colours in the console output. More...

enum classreporter_kind { ... }

The built-in reporters. More...

enum classverbosity { ... }

The verbosity levels for test reporting. More...

Functions Index​

template <class First_T, class Second_T, class... Rest_T>
constexpr autoall_of (First_T &&first, Second_T &&second, Rest_T &&... rest)

Generic logical and operation, for two or more operands. More...

template <class First_T, class Second_T, class... Rest_T>
constexpr autoany_of (First_T &&first, Second_T &&second, Rest_T &&... rest)

Generic logical (inclusive) or operation, for two or more operands. More...

template <class Lhs_T, class Rhs_T, class Epsilon_T>
constexpr autoapprox (Lhs_T &&lhs, Rhs_T &&rhs, Epsilon_T &&epsilon)

Approximate equality comparator, with an explicit tolerance. More...

template <class Lhs_T, class Rhs_T>
constexpr autoeq (Lhs_T &&lhs, Rhs_T &&rhs)

Generic equality comparator. More...

template <class Lhs_T, class Rhs_T>
constexpr autoge (Lhs_T &&lhs, Rhs_T &&rhs)

Generic greater than or equal comparator. More...

template <class Lhs_T, class Rhs_T>
constexpr autogt (Lhs_T &&lhs, Rhs_T &&rhs)

Generic greater than comparator. More...

template <class Lhs_T, class Rhs_T>
constexpr autole (Lhs_T &&lhs, Rhs_T &&rhs)

Generic less than or equal comparator. More...

template <class Lhs_T, class Rhs_T>
constexpr autolt (Lhs_T &&lhs, Rhs_T &&rhs)

Generic less than comparator. More...

template <class Lhs_T, class Rhs_T>
constexpr autone (Lhs_T &&lhs, Rhs_T &&rhs)

Generic non-equality comparator. More...

template <class Expr_T>
constexpr autonegate (Expr_T &&expr)

Generic logical not operation. More...

template <class Callable_T>
autonothrow (Callable_T &&func)

Checks whether a callable does not throw any exception, for expect() or require(). More...

template <class Callable_T>
autothrows (Callable_T &&func)

Checks whether a callable throws any exception, for expect() or require(). More...

template <class Exception_T, class Callable_T>
autothrows (Callable_T &&func)

Checks whether a callable throws a specific exception, for expect() or require(). More...

Value Wrappers Index​

usingto_b = detail::value< bool >

Deprecated strongly-typed wrapper for bool values. More...

usingto_c = detail::value< char >

Deprecated strongly-typed wrapper for char values. More...

usingto_sc = detail::value< signed char >

Deprecated strongly-typed wrapper for signed char values. More...

usingto_s = detail::value< short >

Deprecated strongly-typed wrapper for short values. More...

usingto_i = detail::value< int >

Deprecated strongly-typed wrapper for int values. More...

usingto_l = detail::value< long >

Deprecated strongly-typed wrapper for long values. More...

usingto_ll = detail::value< long long >

Deprecated strongly-typed wrapper for long long values. More...

usingto_u = detail::value< unsigned >

Deprecated strongly-typed wrapper for unsigned values. More...

usingto_uc = detail::value< unsigned char >

Deprecated strongly-typed wrapper for unsigned char values. More...

usingto_us = detail::value< unsigned short >

Deprecated strongly-typed wrapper for unsigned short values. More...

usingto_ul = detail::value< unsigned long >

Deprecated strongly-typed wrapper for unsigned long values. More...

usingto_ull = detail::value< unsigned long long >

Deprecated strongly-typed wrapper for unsigned long long values. More...

usingto_i8 = detail::value< std::int8_t >

Deprecated strongly-typed wrapper for std::int8_t values. More...

usingto_i16 = detail::value< std::int16_t >

Deprecated strongly-typed wrapper for std::int16_t values. More...

usingto_i32 = detail::value< std::int32_t >

Deprecated strongly-typed wrapper for std::int32_t values. More...

usingto_i64 = detail::value< std::int64_t >

Deprecated strongly-typed wrapper for std::int64_t values. More...

usingto_u8 = detail::value< std::uint8_t >

Deprecated strongly-typed wrapper for std::uint8_t values. More...

usingto_u16 = detail::value< std::uint16_t >

Deprecated strongly-typed wrapper for std::uint16_t values. More...

usingto_u32 = detail::value< std::uint32_t >

Deprecated strongly-typed wrapper for std::uint32_t values. More...

usingto_u64 = detail::value< std::uint64_t >

Deprecated strongly-typed wrapper for std::uint64_t values. More...

usingto_f = detail::value< float >

Deprecated strongly-typed wrapper for float values. More...

usingto_d = detail::value< double >

Deprecated strongly-typed wrapper for double values. More...

usingto_ld = detail::value< long double >

Deprecated strongly-typed wrapper for long double values. More...

Deprecated Value Wrappers Index​

using_b = to_b

Deprecated strongly-typed wrapper for bool values, the v5.0.1 name of to_b. More...

using_c = to_c

Deprecated strongly-typed wrapper for char values, the v5.0.1 name of to_c. More...

using_sc = to_sc

Deprecated strongly-typed wrapper for signed char values, the v5.0.1 name of to_sc. More...

using_s = to_s

Deprecated strongly-typed wrapper for short values, the v5.0.1 name of to_s. More...

using_i = to_i

Deprecated strongly-typed wrapper for int values, the v5.0.1 name of to_i. More...

using_l = to_l

Deprecated strongly-typed wrapper for long values, the v5.0.1 name of to_l. More...

using_ll = to_ll

Deprecated strongly-typed wrapper for long long values, the v5.0.1 name of to_ll. More...

using_u = to_u

Deprecated strongly-typed wrapper for unsigned values, the v5.0.1 name of to_u. More...

using_uc = to_uc

Deprecated strongly-typed wrapper for unsigned char values, the v5.0.1 name of to_uc. More...

using_us = to_us

Deprecated strongly-typed wrapper for unsigned short values, the v5.0.1 name of to_us. More...

using_ul = to_ul

Deprecated strongly-typed wrapper for unsigned long values, the v5.0.1 name of to_ul. More...

using_ull = to_ull

Deprecated strongly-typed wrapper for unsigned long long values, the v5.0.1 name of to_ull. More...

using_i8 = to_i8

Deprecated strongly-typed wrapper for std::int8_t values, the v5.0.1 name of to_i8. More...

using_i16 = to_i16

Deprecated strongly-typed wrapper for std::int16_t values, the v5.0.1 name of to_i16. More...

using_i32 = to_i32

Deprecated strongly-typed wrapper for std::int32_t values, the v5.0.1 name of to_i32. More...

using_i64 = to_i64

Deprecated strongly-typed wrapper for std::int64_t values, the v5.0.1 name of to_i64. More...

using_u8 = to_u8

Deprecated strongly-typed wrapper for std::uint8_t values, the v5.0.1 name of to_u8. More...

using_u16 = to_u16

Deprecated strongly-typed wrapper for std::uint16_t values, the v5.0.1 name of to_u16. More...

using_u32 = to_u32

Deprecated strongly-typed wrapper for std::uint32_t values, the v5.0.1 name of to_u32. More...

using_u64 = to_u64

Deprecated strongly-typed wrapper for std::uint64_t values, the v5.0.1 name of to_u64. More...

using_f = to_f

Deprecated strongly-typed wrapper for float values, the v5.0.1 name of to_f. More...

using_d = to_d

Deprecated strongly-typed wrapper for double values, the v5.0.1 name of to_d. More...

using_ld = to_ld

Deprecated strongly-typed wrapper for long double values, the v5.0.1 name of to_ld. More...

template <class T>
using_t = to_t< T >

Deprecated generic strongly-typed wrapper, the v5.0.1 name of to_t. More...

Deprecated Functions Index​

template <class Expr_T>
constexpr auto_not (Expr_T &&expr)

Deprecated generic logical not operation, the v5.0.1 name of negate(). More...

template <class Lhs_T, class Rhs_T>
constexpr auto_and (Lhs_T &&lhs, Rhs_T &&rhs)

Deprecated generic logical and operation, the v5.0.1 name of all_of(). More...

template <class Lhs_T, class Rhs_T>
constexpr auto_or (Lhs_T &&lhs, Rhs_T &&rhs)

Deprecated generic logical (inclusive) or operation, the v5.0.1 name of any_of(). More...

template <class T>
constexpr T &mut (const T &t) noexcept

Deprecated generic mutator to remove const qualification from a reference. More...

template <class T>
constexpr auto approx (T value, std::type_identity_t< T > epsilon) noexcept -> detail::value< T >

Deprecated wrapping of a floating-point value with an explicit comparison tolerance. More...

Description​

Primary namespace for the µTest++ testing framework.

The micro_os_plus::micro_test_plus namespace encapsulates all core components, types, and utilities of the µTest++ testing framework, providing a dedicated scope for its public API.

The main classes (the runner, the suites, and the test cases) are defined directly in this namespace. Several nested namespaces group specific aspects of the framework: extension (the concepts for custom comparators, operators, and helpers), reflection (source locations and type names), utility (utility functions), and detail (internal implementation details, including the reporters, the mathematical utilities of detail::math, and the value wrappers). The namespaces literals (user-defined literals), operators (comparison and logical operators), and type_traits (the v5.0.1 concepts) are deprecated, and are kept for the earlier code.

The declarations are in the headers of the include/micro-os-plus/micro-test-plus folder, and the non-inline definitions in the src folder.


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.