FreeNOS
Public Member Functions | Protected Attributes
TestInstance Class Referenceabstract

Represents a test instance. More...

#include <TestInstance.h>

Inheritance diagram for TestInstance:
ExternalTest LocalTest

Public Member Functions

 TestInstance (const char *name)
 Class constructor. More...
 
virtual ~TestInstance ()
 Destructor. More...
 
const StringgetName () const
 Retrieve test instance name. More...
 
virtual TestResult run ()=0
 Run the test instance. More...
 

Protected Attributes

String m_name
 Name of the test instance. More...
 

Detailed Description

Represents a test instance.

Definition at line 35 of file TestInstance.h.

Constructor & Destructor Documentation

◆ TestInstance()

TestInstance::TestInstance ( const char *  name)

Class constructor.

Parameters
nameName of the test

Definition at line 21 of file TestInstance.cpp.

References TestSuite::addTest(), and StrictSingleton< TestSuite >::instance().

◆ ~TestInstance()

TestInstance::~TestInstance ( )
virtual

Destructor.

Definition at line 27 of file TestInstance.cpp.

Member Function Documentation

◆ getName()

const String & TestInstance::getName ( ) const

Retrieve test instance name.

Returns
Test instance name

Definition at line 31 of file TestInstance.cpp.

References m_name.

Referenced by TAPReporter::reportAfter().

◆ run()

virtual TestResult TestInstance::run ( )
pure virtual

Run the test instance.

Returns
TestResult

Implemented in ExternalTest, and LocalTest.

Referenced by TestRunner::run().

Field Documentation

◆ m_name

String TestInstance::m_name
protected

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