![]() |
Max OS 0.3
|
A test that only checks a condition to determine pass/fail. More...
#include <test.h>
Public Member Functions | |
| ConditionalTest (const string &name, TestType type, bool(*condition)()) | |
| Constructs a ConditionalTest with a name, type, and condition function. | |
| TestStatus | execute () override |
| Executes the conditional test based on the provided condition function. | |
Public Member Functions inherited from MaxOS::tests::Test | |
| Test (const string &name, TestType type) | |
| Constructs a Test with a name and type, and registers it with the TestRunner. | |
| TestStatus | run () |
| Runs the test and returns the result. | |
| const string & | name () const |
| Gets the name of the test. | |
| TestType | type () const |
| Gets the type of the test. | |
Constructs a ConditionalTest with a name, type, and condition function.
| name | The name of the test |
| type | The type of the test |
| condition | The condition function to evaluate |
Definition at line 90 of file test.cpp.
|
overridevirtual |
Executes the conditional test based on the provided condition function.
Implements MaxOS::tests::Test.
Definition at line 101 of file test.cpp.