|
ROSE
0.11.96.11
|
Base class for self tests.
Each test has a name and a functor that takes no arguments.
See also, selfTests, runSelfTestsAndExit.
Definition at line 18 of file SelfTest.h.
#include <SelfTest.h>


Public Types | |
| typedef Sawyer::SharedPointer< SelfTest > | Ptr |
Public Member Functions | |
| virtual std::string | name () const =0 |
| Short name for test. More... | |
| virtual bool | operator() ()=0 |
| The actual test. More... | |
Public Member Functions inherited from Sawyer::SharedObject | |
| SharedObject () | |
| Default constructor. More... | |
| SharedObject (const SharedObject &) | |
| Copy constructor. More... | |
| virtual | ~SharedObject () |
| Virtual destructor. More... | |
| SharedObject & | operator= (const SharedObject &) |
| Assignment. More... | |
|
pure virtual |
Short name for test.
This can be a single word or multiple words, but short enough to easily fit on a single line of output. It should not be capitalized or punctuated since the returned string will be used in a larger diagnostic message.
|
pure virtual |
The actual test.
This is the actual test to run. It should return true if successful, false if not successful.
1.8.17