FreeNOS
Public Member Functions | Private Attributes
LocalTest Class Reference

Represents test inside the same process. More...

#include <LocalTest.h>

Inheritance diagram for LocalTest:
TestInstance

Public Member Functions

 LocalTest (const char *name, TestFunction func)
 Class constructor. More...
 
virtual TestResult run ()
 Run the test function. More...
 
- Public Member Functions inherited from TestInstance
 TestInstance (const char *name)
 Class constructor. More...
 
virtual ~TestInstance ()
 Destructor. More...
 
const StringgetName () const
 Retrieve test instance name. More...
 

Private Attributes

TestFunctionm_func
 Contains the test to run. More...
 

Additional Inherited Members

- Protected Attributes inherited from TestInstance
String m_name
 Name of the test instance. More...
 

Detailed Description

Represents test inside the same process.

Definition at line 36 of file LocalTest.h.

Constructor & Destructor Documentation

◆ LocalTest()

LocalTest::LocalTest ( const char *  name,
TestFunction  func 
)

Class constructor.

Parameters
nameTest name
funcTest function to run

Definition at line 20 of file LocalTest.cpp.

References m_func.

Member Function Documentation

◆ run()

TestResult LocalTest::run ( )
virtual

Run the test function.

Returns
TestResult

Implements TestInstance.

Definition at line 26 of file LocalTest.cpp.

References m_func.

Field Documentation

◆ m_func

TestFunction* LocalTest::m_func
private

Contains the test to run.

Definition at line 58 of file LocalTest.h.

Referenced by LocalTest(), and run().


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