Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsls::ProtocolTest_Status Class Reference

#include <bsls_protocoltest.h>

List of all members.

Public Member Functions

 ProtocolTest_Status ()
void resetLast ()
void fail ()
int failures () const
bool last () const

Detailed Description

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

See Component bsls_protocoltest


Constructor & Destructor Documentation

bsls::ProtocolTest_Status::ProtocolTest_Status (  ) 

Create an object of the ProtocolTest_Status class with the default state in which failures() == 0 and last() == true.


Member Function Documentation

void bsls::ProtocolTest_Status::resetLast (  ) 

Reset the status of the last test to true.

void bsls::ProtocolTest_Status::fail (  ) 

Record a test failure by increasing the number of failures and setting the status of the last test to false.

int bsls::ProtocolTest_Status::failures (  )  const

Return the number of failures encountered during testing of a protocol class, which is 0 if all tests succeeded or if no tests ran.

bool bsls::ProtocolTest_Status::last (  )  const

Return true if the last test completed successfully (or no test has yet completed), and false if it failed.


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