ns3::TestManager Class Reference
[Test]

gather and run all regression tests More...

#include <test.h>

List of all members.

Static Public Member Functions

static void EnableVerbose (void)
static bool RunTests (void)

Private Types

typedef std::list< std::pair
< Test *, std::string * > > 
Tests
typedef std::list< std::pair
< Test *, std::string * >
>::iterator 
TestsI
typedef std::list< std::pair
< Test *, std::string * >
>::const_iterator 
TestsCI

Private Member Functions

bool RealRunTests (void)
 TestManager ()
 ~TestManager ()

Static Private Member Functions

static void Add (Test *test, char const *name)
static std::ostream & Failure (void)
static TestManagerGet (void)

Private Attributes

Tests m_tests
bool m_verbose

Friends

class Test

Detailed Description

gather and run all regression tests

Definition at line 78 of file test.h.


Member Typedef Documentation

typedef std::list<std::pair<Test *,std::string *> > ns3::TestManager::Tests [private]

Definition at line 102 of file test.h.

typedef std::list<std::pair<Test *,std::string *> >::const_iterator ns3::TestManager::TestsCI [private]

Definition at line 104 of file test.h.

typedef std::list<std::pair<Test *,std::string *> >::iterator ns3::TestManager::TestsI [private]

Definition at line 103 of file test.h.


Constructor & Destructor Documentation

ns3::TestManager::TestManager (  )  [private]

Definition at line 35 of file test.cc.

ns3::TestManager::~TestManager (  )  [private]

Definition at line 39 of file test.cc.

References m_tests.


Member Function Documentation

void ns3::TestManager::Add ( Test test,
char const *  name 
) [static, private]

Definition at line 49 of file test.cc.

References Get(), and m_tests.

Referenced by ns3::Test::Test().

void ns3::TestManager::EnableVerbose ( void   )  [static]

Enable verbose output. If you do not enable verbose output, nothing is printed on screen during the test runs.

Definition at line 54 of file test.cc.

References Get(), and m_verbose.

std::ostream & ns3::TestManager::Failure ( void   )  [static, private]

Definition at line 59 of file test.cc.

TestManager * ns3::TestManager::Get ( void   )  [static, private]

Definition at line 29 of file test.cc.

Referenced by Add(), EnableVerbose(), and RunTests().

bool ns3::TestManager::RealRunTests ( void   )  [private]

Definition at line 69 of file test.cc.

References m_tests, and m_verbose.

Referenced by RunTests().

bool ns3::TestManager::RunTests ( void   )  [static]
Returns:
true if all tests passed, false otherwise.

run all registered regression tests

Definition at line 64 of file test.cc.

References Get(), and RealRunTests().


Friends And Related Function Documentation

friend class Test [friend]

Definition at line 93 of file test.h.


Member Data Documentation

Definition at line 106 of file test.h.

Referenced by Add(), RealRunTests(), and ~TestManager().

Definition at line 107 of file test.h.

Referenced by EnableVerbose(), and RealRunTests().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:35 2009 for NS-3 by  doxygen 1.6.3