|
micro-test-plus 6.0.1
µTest++ Testing Framework
|
C++ header file with declarations for the µTest++ test hierarchy. More...
#include "check-result.h"#include "counters.h"#include "extension.h"#include "stopwatch.h"#include "reflection.h"#include <cstddef>#include <functional>#include <initializer_list>#include <memory>#include <string>#include <string_view>#include <tuple>#include <type_traits>#include <utility>#include "inlines/test-inlines.h"Go to the source code of this file.
Classes | |
| class | micro_os_plus::micro_test_plus::detail::bound_callable< Self_T, Callable_T, Args_T > |
| Function object that holds a callable and the additional arguments it is invoked with. More... | |
| class | micro_os_plus::micro_test_plus::detail::callable_ref< Self_T > |
| Non-owning reference to a callable invoked with a Self_T& argument. More... | |
| class | micro_os_plus::micro_test_plus::located_name |
| A name of a suite or of a test case, with the location where it was given. More... | |
| class | micro_os_plus::micro_test_plus::detail::runnable_base |
| Non-template base for all runnable objects (suites and test cases). More... | |
| class | micro_os_plus::micro_test_plus::static_suite |
| A test suite designed for static (namespace-scope) registration with a runner. More... | |
| class | micro_os_plus::micro_test_plus::suite |
| A named, runnable test suite registered with the test runner. More... | |
| class | micro_os_plus::micro_test_plus::test_case |
| A named, runnable test case that lives inside a suite. More... | |
| class | micro_os_plus::micro_test_plus::top_suite |
| The optional top suite owned by every runner instance. 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. | |
Concepts | |
| concept | micro_os_plus::micro_test_plus::detail::generic_callable |
| Concept satisfied by a callable object whose call operator is not a single non-template member function. | |
| concept | micro_os_plus::micro_test_plus::detail::static_suite_body |
| The body of a static suite written for v5.0.1, whose first parameter is a static_suite& reference. | |
| concept | micro_os_plus::micro_test_plus::detail::suite_body |
| Concept satisfied by a callable object that can be the body of a suite. | |
| concept | micro_os_plus::micro_test_plus::detail::test_body |
| Concept satisfied by a callable object that can be the body of a test case. | |
| concept | micro_os_plus::micro_test_plus::detail::test_values_range |
| Concept satisfied when T is a range of values for test_each(). | |
| concept | micro_os_plus::micro_test_plus::detail::test_values_tuple |
| Concept satisfied when T is a tuple of values for test_each(). | |
| concept | micro_os_plus::micro_test_plus::detail::unsupported_condition |
| Concept satisfied by a value that expect() and require() do not accept. | |
Functions | |
| template<typename Self_T, typename Callable_T, typename... Args_T> | |
| auto | micro_os_plus::micro_test_plus::detail::bind_callable (Callable_T &&callable, Args_T &&... arguments) |
| Creates the function object that holds the body of a test case or suite. | |
| void | micro_os_plus::micro_test_plus::detail::escape_control_characters (std::string &name) |
| Escapes the control characters of a name. | |
| template<typename Callable_T, typename... Args_T> | |
| constexpr void | micro_os_plus::micro_test_plus::detail::reject_suite_body (void) noexcept |
| Stops the compilation with a message that tells what the body of a suite takes. | |
| template<typename Callable_T, typename... Args_T> | |
| constexpr void | micro_os_plus::micro_test_plus::detail::reject_test_body (void) noexcept |
| Stops the compilation with a message that tells what the body of a test case takes. | |
| template<class Self_T, class Values_T, class Callable_T> | |
| void | micro_os_plus::micro_test_plus::detail::test_each_value (Self_T &self, const located_name &name, Values_T &&values, Callable_T &callable) |
| Adds and runs a test case for each value. | |
Variables | |
| template<typename... Ts> | |
| constexpr bool | micro_os_plus::micro_test_plus::detail::dependent_false_v = false |
| A value that is always false, but depends on the template arguments. | |
This header provides the declarations for the test hierarchy used within the µTest++ framework: the internal detail::runnable_base base class, and the test_case, suite, top_suite, and static_suite classes. They offer mechanisms for running test cases, managing the counters of the passed and failed checks, and registering test suites with the runner.
The test suites are non-copyable and non-movable, so that each one has a single owner. Their bodies are any callable objects, such as functions and lambdas, with optional arguments.
All definitions reside within the micro_os_plus::micro_test_plus namespace.
This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.
Definition in file test.h.