[#BloombergLP-bsls-ProtocolTest_Status]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::ProtocolTest&lowbar;Status
:relfileprefix: ../../
:mrdocs:

This class keeps track of the test status, which includes the status of the last test and the number of failures across all tests&period;

== Synopsis

Declared in `&lt;bsls&lowbar;protocoltest&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ProtocolTest&lowbar;Status;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsls/ProtocolTest_Status/2constructor.adoc[`ProtocolTest&lowbar;Status`]         [.small]#[constructor]#
| Create an object of the `ProtocolTest&lowbar;Status` class with the default state in which `failures() &equals;&equals; 0` and `last() &equals;&equals; true`&period;
| xref:BloombergLP/bsls/ProtocolTest_Status/fail.adoc[`fail`] 
| Record a test failure by increasing the number of `failures` and setting the status of the last test to `false`&period;
| xref:BloombergLP/bsls/ProtocolTest_Status/failures.adoc[`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&period;
| xref:BloombergLP/bsls/ProtocolTest_Status/last.adoc[`last`] 
| Return `true` if the last test completed successfully (or no test has yet completed), and `false` if it failed&period;
| xref:BloombergLP/bsls/ProtocolTest_Status/resetLast.adoc[`resetLast`] 
| Reset the status of the last test to `true`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
