Test execution tracking and results accumulation.
More...
#include <TestFramework.h>
|
| void | add_result (bool passed, uint64_t execution_time) noexcept |
| | Add test result and update statistics.
|
| |
| float | get_success_percentage () const noexcept |
| | Calculate success percentage.
|
| |
| float | get_total_time_ms () const noexcept |
| | Get total execution time in milliseconds.
|
| |
Test execution tracking and results accumulation.
◆ add_result()
| void TestResults::add_result |
( |
bool | passed, |
|
|
uint64_t | execution_time ) |
|
inlinenoexcept |
Add test result and update statistics.
- Parameters
-
| passed | Whether the test passed |
| execution_time | Test execution time in microseconds |
◆ get_success_percentage()
| float TestResults::get_success_percentage |
( |
| ) |
const |
|
inlinenoexcept |
Calculate success percentage.
- Returns
- Success percentage (0.0 to 100.0)
◆ get_total_time_ms()
| float TestResults::get_total_time_ms |
( |
| ) |
const |
|
inlinenoexcept |
Get total execution time in milliseconds.
- Returns
- Total execution time in milliseconds
◆ failed_tests
| int TestResults::failed_tests = 0 |
◆ passed_tests
| int TestResults::passed_tests = 0 |
◆ total_execution_time_us
| uint64_t TestResults::total_execution_time_us = 0 |
◆ total_tests
| int TestResults::total_tests = 0 |
The documentation for this struct was generated from the following file: