CppUnit project page FAQ CppUnit home page

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CppUnit::TestRegistry Class Reference

This class is used to register tests and testcases. More...

#include <TestRegistry.h>

List of all members.

Public Methods

 ~TestRegistry ()
const std::vector< std::string > & getAllTestNames () const
const std::vector< Test *> & getAllTests () const
std::vector< Test *> getTest (const std::string &name) const
void addTest (std::string name, Test *test)

Static Public Methods

TestRegistry & getRegistry ()

Private Methods

 TestRegistry ()

Private Attributes

std::vector< std::string > m_registry_names
std::vector< Test *> m_registry_tests


Detailed Description

This class is used to register tests and testcases.

It implements a registry to place the test cases into. The test cases can then register themselves. All TestCallers and those TestCases that are constructed register themselve automatically.


Constructor & Destructor Documentation

CppUnit::TestRegistry::~TestRegistry  
 

CppUnit::TestRegistry::TestRegistry   [private]
 


Member Function Documentation

void CppUnit::TestRegistry::addTest std::string   name,
Test *   test
 

const std::vector< std::string > & CppUnit::TestRegistry::getAllTestNames   const
 

const std::vector< Test *> & CppUnit::TestRegistry::getAllTests   const
 

TestRegistry & CppUnit::TestRegistry::getRegistry   [static]
 

std::vector< Test *> CppUnit::TestRegistry::getTest const std::string &   testCase const
 


Member Data Documentation

std::vector<std::string> CppUnit::TestRegistry::m_registry_names [private]
 

std::vector<Test*> CppUnit::TestRegistry::m_registry_tests [private]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers