![]() |
Max OS 0.3
|
A basic test class. More...
#include <test.h>
Public Member Functions | |
| 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. | |
| virtual TestStatus | execute ()=0 |
| Executes the test and returns the status of the test. | |
| const string & | name () const |
| Gets the name of the test. | |
| TestType | type () const |
| Gets the type of the test. | |
Constructs a Test with a name and type, and registers it with the TestRunner.
| name | The name of the test |
| type | The type of the test |
Definition at line 21 of file test.cpp.
References MaxOS::tests::TestRunner::add_test().
|
pure virtual |
Executes the test and returns the status of the test.
Implemented in MaxOS::tests::ConditionalTest.
Referenced by run().
| const string & Test::name | ( | ) | const |
| TestStatus Test::run | ( | ) |
Runs the test and returns the result.
Definition at line 33 of file test.cpp.
References MaxOS::Logger::ERROR(), execute(), MaxOS::StringBuilder::out, and MaxOS::Logger::TEST().
| TestType Test::type | ( | ) | const |