|
micro-test-plus 6.0.0
µTest++ Testing Framework
|
Definitions kept for compatibility with earlier releases. More...
Topics | |
| Operators | |
| Deprecated overloaded operators for test comparisons. | |
| Old logical function names | |
| Deprecated v5.0.1 names of the logical functions. | |
| Literals and wrappers | |
| Deprecated literal operators and wrappers for typed operands. | |
Namespaces | |
| namespace | micro_os_plus::micro_test_plus::type_traits |
| Deprecated v5.0.1 namespace of the concepts and of the value wrapper templates. | |
Concepts | |
| concept | micro_os_plus::micro_test_plus::extension::has_epsilon |
| Deprecated concept satisfied when T is a framework floating-point wrapper with a tolerance. | |
| concept | micro_os_plus::micro_test_plus::type_traits::has_npos |
| Deprecated concept satisfied when T provides a npos member. | |
| concept | micro_os_plus::micro_test_plus::type_traits::has_value |
| Deprecated concept satisfied when T has a member named value. | |
| concept | micro_os_plus::micro_test_plus::type_traits::is_floating_point |
| Deprecated concept satisfied when T is a floating-point type. | |
Typedefs | |
| template<class T> | |
| using | micro_os_plus::micro_test_plus::type_traits::genuine_integral_value = detail::value<T> |
| Deprecated integral value wrapper. | |
| using | micro_os_plus::micro_test_plus::detail::runner_totals = counters |
| Deprecated name of counters. | |
| using | micro_os_plus::micro_test_plus::static_runner = runner |
| Deprecated name of runner. | |
| using | micro_os_plus::micro_test_plus::subtest = test_case |
| Deprecated name of test_case. | |
| using | micro_os_plus::micro_test_plus::detail::timestamps = stopwatch |
| Deprecated name of stopwatch. | |
| template<class T> | |
| using | micro_os_plus::micro_test_plus::type_traits::value_base_ = detail::value_base<T> |
| Deprecated name of detail::value_base. | |
Functions | |
| const char * | micro_os_plus::micro_test_plus::reflection::short_name (const char *name) noexcept |
| Deprecated extraction of the file name from a path. | |
| template<class Lhs_T, class Rhs_T> requires (extension::has_epsilon<Lhs_T> or extension::has_epsilon<Rhs_T>) | |
| constexpr bool | micro_os_plus::micro_test_plus::detail::within_tolerance (const Lhs_T &lhs, const Rhs_T &rhs) |
| Deprecated check whether two operands are equal within the tolerance of the floating-point wrappers. | |
Variables | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::equal_to::within_tolerance_result = true |
| Deprecated result when the operands are within the tolerance. | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::greater::within_tolerance_result = false |
| Deprecated result when the operands are within the tolerance. | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::greater_equal::within_tolerance_result = true |
| Deprecated result when the operands are within the tolerance. | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::less::within_tolerance_result = false |
| Deprecated result when the operands are within the tolerance. | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::less_equal::within_tolerance_result = true |
| Deprecated result when the operands are within the tolerance. | |
| static constexpr bool | micro_os_plus::micro_test_plus::detail::not_equal_to::within_tolerance_result = false |
| Deprecated result when the operands are within the tolerance. | |
Deprecated Functions | |
| template<class T> | |
| constexpr auto | micro_os_plus::micro_test_plus::mut (const T &t) noexcept -> T & |
| Deprecated generic mutator to remove const qualification from a reference. | |
The deprecated definitions are kept so that the tests written for the earlier releases still compile; they will be removed in a future major release. The compiler reports each use, with a message that names the replacement and the version that deprecated it (most of them since 6.0.0).
| using micro_os_plus::micro_test_plus::type_traits::genuine_integral_value = detail::value<T> |
| T | The integral type of the stored value. |
In v5.0.1, a separate wrapper with the same members as value<T>, never created by the framework; now value<T>, so the values are compared and reported in the same way.
Definition at line 2823 of file deprecated.h.
The v5.0.1 name of the class returned by totals(), renamed since the suites and the test cases own one too, not only the runner.
The runner also runs the static_suite objects that refer to it, so a separate runner class is no longer needed.
The v5.0.1 name of the class passed to the test case bodies, kept for the functions and the lambdas that name it as the type of their first parameter (void f (mt::subtest& t)); the lambdas with an auto& parameter are not affected.
The v5.0.1 name of the class returned by the timings() functions of the runner and of the suites, which kept the two timestamps of the measured interval. Its public members are kept, on stopwatch; its protected members, the two optional timestamp objects, are not. The timings are internal; the elapsed times are shown by the reporters.
| using micro_os_plus::micro_test_plus::type_traits::value_base_ = detail::value_base<T> |
| T | The type of the stored value. |
The v5.0.1 name, with a trailing underscore. The stored value is now private, and get() returns a reference; the value is read with get() or with the explicit conversion, not through the v5.0.1 public member value_.
Definition at line 2807 of file deprecated.h.
|
nodiscardconstexprnoexcept |
Not used by the framework. Equivalent to const_cast<T&> (t), which replaces it.
| T | The type of the input object. |
| t | The object from which to remove const qualification. |
Removes the const qualifier from the reference with const_cast.
Definition at line 725 of file deprecated-inlines.h.
References mut().
Referenced by mut().
|
nodiscardnoexcept |
Forwards to utility::extract_file_name(), which the framework uses internally; it is kept only for compatibility with the existing applications.
| name | The path, as a C-string. |
Delegates to utility::extract_file_name(), the single implementation used by the framework, so both the / and the backslash separators are recognised. If no separator is present, the original input string is returned.
Definition at line 78 of file deprecated.cpp.
References micro_os_plus::micro_test_plus::utility::extract_file_name(), and short_name().
Referenced by short_name().
|
nodiscardconstexpr |
Used by compare_op for all six tags, so that a value within the tolerance is equal, and neither less nor greater; at least one operand must have an epsilon member (a floating-point literal, a to_f, to_d, or to_ld wrapper, or approx()).
Used only by the deprecated floating-point wrappers, it is available only when MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED is defined.
| Lhs_T | The type of the left-hand operand. |
| Rhs_T | The type of the right-hand operand. |
| lhs | The left-hand operand. |
| rhs | The right-hand operand. |
| true | The absolute difference is less than the tolerance (the smaller one, if both operands have one). |
| false | Otherwise. |
The tolerance is the smaller epsilon of the two operands, if both have one, otherwise the epsilon of the operand that has one. The operands are equal when the absolute value of their difference is less than the tolerance.
Definition at line 212 of file detail-inlines.h.
References micro_os_plus::micro_test_plus::detail::math::abs(), micro_os_plus::micro_test_plus::detail::math::min_value(), unwrap(), and within_tolerance().
Referenced by micro_os_plus::micro_test_plus::detail::compare_op< Lhs_T, Rhs_T, Compare_T >::compare_op(), and within_tolerance().
|
staticconstexpr |
Values within the tolerance are equal.
Used only by the tolerance of the deprecated floating-point wrappers.
|
staticconstexpr |
Values within the tolerance are equal, not ordered.
Used only by the tolerance of the deprecated floating-point wrappers.
|
staticconstexpr |
Values within the tolerance are equal.
Used only by the tolerance of the deprecated floating-point wrappers.
|
staticconstexpr |
Values within the tolerance are equal, not ordered.
Used only by the tolerance of the deprecated floating-point wrappers.
|
staticconstexpr |
Values within the tolerance are equal.
Used only by the tolerance of the deprecated floating-point wrappers.
|
staticconstexpr |
Values within the tolerance are equal.
Used only by the tolerance of the deprecated floating-point wrappers.