arduino-dataflash
|
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 Runner & | Instance () |
Retrieve the unit test manager instance. | |
Protected Attributes | |
Result | m_result |
TestNotificationInterface * | m_notify |
Test campaign results. | |
Test * | m_head |
Test notification callbacks. | |
Test * | m_tail |
Last element of the test list. | |
Private Member Functions | |
Runner () | |
Constructor. | |
Runner (const Runner &) | |
Copy constructor. | |
Runner & | operator= (const Runner &) |
Copy operator. | |
The unit test manager.
It basically holds a list of tests and execute them in the order in which they were declared.
Dummy::Runner::~Runner | ( | ) |
Destructor.
|
private |
Constructor.
|
private |
Copy constructor.
void Dummy::Runner::Add | ( | Test * | elmnt | ) |
Add a test to the suite.
[in] | elmnt | : pointer to the test to be added. |
|
static |
Retrieve the unit test manager instance.
void Dummy::Runner::OnCheckFailed | ( | char const * | expected, |
char const * | value, | ||
Infos const & | infos | ||
) |
CHECK failure notification.
[in] | expected | : expected value string. |
[in] | value | : tested value string. |
[in] | infos | : test informations. |
Result Dummy::Runner::Run | ( | TestNotificationInterface * | notify = 0 | ) |
Process every test declared.
[in] | notify | : Notification callback (optional). |
[in] | notify | : Test notification callbacks. |
|
protected |
Test campaign results.
|
protected |
|
protected |
Last element of the test list.