Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
Teuchos::UnitTestBase Class Referenceabstract

Unit test base class. More...

#include <Teuchos_UnitTestBase.hpp>

Inheritance diagram for Teuchos::UnitTestBase:
Teuchos::Describable Teuchos::LabeledObject

Public Member Functions

 UnitTestBase (const std::string groupName, std::string testName)
bool runUnitTest (FancyOStream &out) const
virtual std::string unitTestFile () const =0
virtual long int unitTestFileLineNumber () const =0
- Public Member Functions inherited from Teuchos::Describable
virtual std::string description () const
 Return a simple one-line description of this object. More...
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 Print the object with some verbosity level to a FancyOStream. More...
void describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 Version of describe() that takes an std::ostream instead of a FancyOStream. More...
virtual ~Describable ()
 Destructor (marked virtual for memory safety of derived classes). More...
- Public Member Functions inherited from Teuchos::LabeledObject
 LabeledObject ()
 Construct with an empty label. More...
virtual ~LabeledObject ()
virtual void setObjectLabel (const std::string &objectLabel)
 Set the object label (see LabeledObject). More...
virtual std::string getObjectLabel () const
 Get the object label (see LabeledObject). More...

Protected Member Functions

virtual void runUnitTestImpl (FancyOStream &out, bool &success) const =0

Additional Inherited Members

- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default = VERB_DEFAULT
 Default value for the verbLevel argument of describe(). More...

Detailed Description

Unit test base class.

Definition at line 59 of file Teuchos_UnitTestBase.hpp.

Constructor & Destructor Documentation

Teuchos::UnitTestBase::UnitTestBase ( const std::string  groupName,
std::string  testName 

Definition at line 52 of file Teuchos_UnitTestBase.cpp.

Member Function Documentation

bool Teuchos::UnitTestBase::runUnitTest ( FancyOStream out) const

Definition at line 58 of file Teuchos_UnitTestBase.cpp.

virtual std::string Teuchos::UnitTestBase::unitTestFile ( ) const
pure virtual

virtual long int Teuchos::UnitTestBase::unitTestFileLineNumber ( ) const
pure virtual

virtual void Teuchos::UnitTestBase::runUnitTestImpl ( FancyOStream out,
bool &  success 
) const
protectedpure virtual

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