#include <AP_Test.h>
|
const char * | _name |
| name of the current test More...
|
|
bool | _fail |
| set if any ::require calls indicate the test failed More...
|
|
Unit test state and methods.
Definition at line 42 of file AP_Test.h.
◆ Test()
Test::Test |
( |
const char * |
name | ) |
|
Constructor - creates a new test.
Normally called by the TEST macro.
- Parameters
-
name | The name of the test being started. |
Constructor
Definition at line 78 of file AP_Test.h.
◆ ~Test()
Destructor - ends the test.
Destructor
Definition at line 86 of file AP_Test.h.
◆ report()
Report the overall number of tests/pass/fails.
Summary report
Definition at line 110 of file AP_Test.h.
◆ require()
void Test::require |
( |
bool |
expr, |
|
|
const char * |
source |
|
) |
| |
Perform a success check.
- Parameters
-
expr | If false, the test has failed. |
source | The expression source; emitted in the diagnostic indicating test failure. |
Success check
Definition at line 99 of file AP_Test.h.
◆ _fail
◆ _failed
int16_t Test::_failed = 0 |
|
staticprivate |
◆ _name
◆ _passed
int16_t Test::_passed = 0 |
|
staticprivate |
The documentation for this class was generated from the following file: