Public Types | Public Member Functions | List of all members
Rose::CommandLine::SelfTest Class Referenceabstract


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 <Rose/CommandLine/SelfTest.h>

Inheritance diagram for Rose::CommandLine::SelfTest:
Inheritance graph
Collaboration diagram for Rose::CommandLine::SelfTest:
Collaboration graph

Public Types

typedef Sawyer::SharedPointer< SelfTestPtr

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...
SharedObjectoperator= (const SharedObject &)
 Assignment. More...

Member Function Documentation

virtual std::string Rose::CommandLine::SelfTest::name ( ) const
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.

virtual bool Rose::CommandLine::SelfTest::operator() ( )
pure virtual

The actual test.

This is the actual test to run. It should return true if successful, false if not successful.

The documentation for this class was generated from the following file: