![]() |
micro-test-plus 3.2.2
µTest++ Testing Framework
|
C++ source file with implementations for the µTest++ methods. More...
#include <micro-os-plus/micro-test-plus.h>
#include <cstring>
#include <stdio.h>
#include <unistd.h>
Go to the source code of this file.
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. | |
namespace | micro_os_plus::micro_test_plus::reflection |
Reflection utilities for the µTest++ testing framework. | |
namespace | micro_os_plus::micro_test_plus::utility |
Utility functions for the µTest++ testing framework. |
Functions | |
int | micro_os_plus::micro_test_plus::exit_code (void) |
Complete the test run and return the exit code. | |
void | micro_os_plus::micro_test_plus::initialize (int argc, char *argv[], const char *name="Main") |
Initialise the µTest++ framework. | |
bool | micro_os_plus::micro_test_plus::utility::is_match (std::string_view input, std::string_view pattern) |
Check if a string matches a pattern. | |
const char * | micro_os_plus::micro_test_plus::reflection::short_name (const char *name) |
Extract a short type or function name from a fully qualified name. |
This source file contains the core implementations for the µTest++ testing framework, including initialisation and shutdown routines, utility functions, and the management of global framework state. It provides the logic for setting up the test environment, registering and executing test suites, reporting results, and supporting utility operations such as file name extraction and pattern-based string matching.
All definitions are contained within the micro_os_plus::micro_test_plus namespace and its nested namespaces, ensuring clear separation from user code and minimising the risk of naming conflicts.
The implementation is optimised for embedded environments, avoiding heavy dependencies and providing lightweight, efficient mechanisms for test execution and reporting.
This file must be included when building the µTest++ library.
Definition in file micro-test-plus.cpp.