This class keeps track of the test status, which includes the status of the last test and the number of failures across all tests.
Declared in <bsls_protocoltest.h>
class ProtocolTest_Status;
| Name | Description |
|---|---|
ProtocolTest_Status [constructor] | Create an object of the ProtocolTest_Status class with the default state in which failures() == 0 and last() == true. |
fail | Record a test failure by increasing the number of failures and setting the status of the last test to false. |
failures | Return the number of failures encountered during testing of a protocol class, which is 0 if all tests succeeded or if no tests ran. |
last | Return true if the last test completed successfully (or no test has yet completed), and false if it failed. |
resetLast | Reset the status of the last test to true. |