FreeNOS
Public Member Functions | Private Attributes
TestSuite Class Reference

Maintains a list of test instances. More...

#include <TestSuite.h>

Inheritance diagram for TestSuite:
StrictSingleton< TestSuite >

Public Member Functions

 TestSuite ()
 Class constructor. More...
 
void addTest (TestInstance *test)
 Add a test. More...
 
List< TestInstance * > * getTests ()
 Retrieve a list of all tests. More...
 

Private Attributes

List< TestInstance * > m_tests
 List of TestInstances in the suite. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from StrictSingleton< TestSuite >
static TestSuiteinstance ()
 Retrieve the instance. More...
 

Detailed Description

Maintains a list of test instances.

Definition at line 37 of file TestSuite.h.

Constructor & Destructor Documentation

◆ TestSuite()

TestSuite::TestSuite ( )

Class constructor.

Definition at line 22 of file TestSuite.cpp.

Member Function Documentation

◆ addTest()

void TestSuite::addTest ( TestInstance test)

Add a test.

Parameters
testTestInstance to add

Definition at line 27 of file TestSuite.cpp.

References List< T >::append(), and m_tests.

Referenced by TestInstance::TestInstance().

◆ getTests()

List< TestInstance * > * TestSuite::getTests ( )

Retrieve a list of all tests.

Returns
List of TestInstances

Definition at line 32 of file TestSuite.cpp.

References m_tests.

Referenced by TestRunner::run().

Field Documentation

◆ m_tests

List<TestInstance *> TestSuite::m_tests
private

List of TestInstances in the suite.

Definition at line 63 of file TestSuite.h.

Referenced by addTest(), and getTests().


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