arduino-dataflash
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dummy::Runner Class Reference

The unit test manager. More...

#include <Runner.h>

Public Member Functions

 ~Runner ()
 Destructor.
 
Result Run (TestNotificationInterface *notify=0)
 Process every test declared.
 
void OnCheckFailed (char const *expected, char const *value, Infos const &infos)
 CHECK failure notification.
 
void Add (Test *elmnt)
 Add a test to the suite.
 

Static Public Member Functions

static RunnerInstance ()
 Retrieve the unit test manager instance.
 

Protected Attributes

Result m_result
 
TestNotificationInterfacem_notify
 Test campaign results.
 
Testm_head
 Test notification callbacks.
 
Testm_tail
 Last element of the test list.
 

Private Member Functions

 Runner ()
 Constructor.
 
 Runner (const Runner &)
 Copy constructor.
 
Runneroperator= (const Runner &)
 Copy operator.
 

Detailed Description

The unit test manager.

It basically holds a list of tests and execute them in the order in which they were declared.

Constructor & Destructor Documentation

Dummy::Runner::~Runner ( )

Destructor.

Dummy::Runner::Runner ( )
private

Constructor.

Dummy::Runner::Runner ( const Runner )
private

Copy constructor.

Member Function Documentation

void Dummy::Runner::Add ( Test elmnt)

Add a test to the suite.

Parameters
[in]elmnt: pointer to the test to be added.
Runner & Dummy::Runner::Instance ( )
static

Retrieve the unit test manager instance.

void Dummy::Runner::OnCheckFailed ( char const *  expected,
char const *  value,
Infos const &  infos 
)

CHECK failure notification.

Parameters
[in]expected: expected value string.
[in]value: tested value string.
[in]infos: test informations.
Runner & Dummy::Runner::operator= ( const Runner )
private

Copy operator.

Result Dummy::Runner::Run ( TestNotificationInterface notify = 0)

Process every test declared.

Parameters
[in]notify: Notification callback (optional).
Returns
Tests result.
Parameters
[in]notify: Test notification callbacks.
Returns
Tests result.

Member Data Documentation

Test* Dummy::Runner::m_head
protected

Test notification callbacks.

First element of the test list.

TestNotificationInterface* Dummy::Runner::m_notify
protected

Test campaign results.

Result Dummy::Runner::m_result
protected
Test* Dummy::Runner::m_tail
protected

Last element of the test list.


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