48#ifndef MICRO_TEST_PLUS_TEST_SUITE_H_
49#define MICRO_TEST_PLUS_TEST_SUITE_H_
62#pragma GCC diagnostic push
63#pragma GCC diagnostic ignored "-Wpadded"
64#if !defined(__clang__)
65#pragma GCC diagnostic ignored "-Wsuggest-final-types"
66#pragma GCC diagnostic ignored "-Wsuggest-final-methods"
69#pragma clang diagnostic ignored "-Wc++98-compat"
177 [[nodiscard]]
constexpr const char*
212 [[nodiscard]]
constexpr int
225 [[nodiscard]]
constexpr int
238 [[nodiscard]]
constexpr int
273 [[nodiscard]]
constexpr bool
287 [[nodiscard]]
constexpr bool
389 template <
typename Callable_T,
typename... Args_T>
391 Args_T&&... arguments);
445#pragma GCC diagnostic pop
int failed_checks_
Count of test conditions that failed.
virtual void run(void)
Runs the sequence of test cases in the suite.
test_suite_base(const char *name)
Constructs a test suite.
int test_cases_
Count of test cases in the test suite.
void increment_failed(void)
Increments the count of failed test conditions.
constexpr bool unused(void)
Checks if the test suite was not used.
struct micro_os_plus::micro_test_plus::test_suite_base::@307331361010072137141032203112105164200271360345 current_test_case
Structure holding the current test case's check counters.
constexpr const char * name(void)
Gets the suite name.
int failed_checks
Number of failed checks in the current test case.
int successful_checks
Number of successful checks in the current test case.
constexpr int failed_checks(void)
Gets the number of test conditions that failed.
void begin_test_case(const char *name)
Marks the beginning of a named test case.
const char * name_
The test suite name.
void increment_successful(void)
Increments the count of passed test conditions.
virtual ~test_suite_base()
Virtual destructor for the test_suite_base class.
void end_test_suite(void)
Marks the end of the test suite.
void end_test_case(void)
Marks the end of a test case.
test_suite_base & operator=(const test_suite_base &)=delete
Deleted copy assignment operator to prevent copying.
test_suite_base(const test_suite_base &)=delete
Deleted copy constructor to prevent copying.
bool process_deferred_begin
Indicates whether to process deferred begin for test cases.
test_suite_base(test_suite_base &&)=delete
Deleted move constructor to prevent moving.
constexpr int successful_checks(void)
Gets the number of conditions that passed.
int successful_checks_
Count of test conditions that passed.
void begin_test_suite(void)
Begins the execution of the test suite.
const char * test_case_name_
The current test case name.
constexpr bool was_successful(void)
Gets the test suite result.
constexpr int test_cases(void)
Gets the number of test cases.
std::function< void(void)> callable_
Callable object representing the test suite's execution logic.
test_suite(const test_suite &)=delete
Deleted copy constructor to prevent copying.
test_suite(const char *name, Callable_T &&callable, Args_T &&... arguments)
Class template constructor for test_suite.
test_suite & operator=(const test_suite &)=delete
Deleted copy assignment operator to prevent copying.
virtual void run(void) override
Runs the sequence of test cases in the suite by invoking the stored callable.
test_suite(test_suite &&)=delete
Deleted move constructor to prevent moving.
virtual ~test_suite() override
Virtual destructor for the test_suite class.
Primary namespace for the µTest++ testing framework.