C++ header file with inline implementations for the µTest++ test runner. More...
Namespaces Index
Description
C++ header file with inline implementations for the µTest++ test runner.
This header provides the inline accessors of the runner class and the inline template implementation for runner::add_suite(), the member function used to create and register a named test suite with a runner instance, and for its deprecated alias runner::suite(). It constructs a suite object on the heap (wrapped in std::unique_ptr) and transfers ownership to the runner via register_suite(); the suite is run later, by run_suites().
The implementation is separated into this inline header so that the template definition is visible at every call site without cluttering the main runner.h declaration file.
This file is included by runner.h; the applications include micro-os-plus/micro-test-plus.h, not this file.
File Listing
The file content with the documentation metadata removed is:
36#ifndef MICRO_OS_PLUS_MICRO_TEST_PLUS_INLINES_RUNNER_INLINES_H_
37#define MICRO_OS_PLUS_MICRO_TEST_PLUS_INLINES_RUNNER_INLINES_H_
41#if defined(__cplusplus)
45#if __has_include("micro-os-plus/diag/trace.h")
46#include "micro-os-plus/diag/trace.h"
52#pragma GCC diagnostic push
54#pragma GCC diagnostic ignored "-Waggregate-return"
56#pragma clang diagnostic ignored "-Wunknown-warning-option"
57#pragma clang diagnostic ignored "-Wc++98-compat"
58#pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
59#pragma clang diagnostic ignored "-Wunsafe-buffer-usage-in-libc-call"
61#pragma GCC diagnostic ignored "-Wredundant-tags"
106#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
134 inline std::span<const std::string>
137 return options_.application_arguments ();
140#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
188 template <typename Callable_T, typename... Args_T>
192 Args_T&&... arguments)
194#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_ENABLED)
195 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name.name ());
199 std::unique_ptr<class suite> child_suite{ new class suite (
200 std::move (name), *this, std::forward<Callable_T> (callable),
201 std::forward<Args_T> (arguments)...) };
206#if !defined(__DOXYGEN__)
212 template <typename Callable_T, typename... Args_T>
213 requires (!detail::suite_body<Callable_T, Args_T...>)
216 [[maybe_unused]] Callable_T&& callable,
217 [[maybe_unused]] Args_T&&... arguments)
223#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
229 template <typename Callable_T, typename... Args_T>
232 Args_T&&... arguments)
235 std::forward<Args_T> (arguments)...);
243#pragma GCC diagnostic pop
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.