ldas-tools-al 2.6.4
|
Provide standard routines for unit testing of code. More...
#include <unittest.h>
Public Member Functions | |
UnitTest (void) | |
Constructor. More... | |
~UnitTest (void) | |
Destructor. More... | |
std::ostream & | Check (bool TestResult) |
Check for error conditions. More... | |
void | Check (bool TestResult, std::string Message) |
Check for error conditions. More... | |
void | Exit (void) |
Exit with the appropriate exit code. More... | |
void | Init (int ArgC, char **ArgV) |
Initialize the class with command line arguments. More... | |
bool | IsVerbose (int Level=0) const |
Check if in verbose mode. More... | |
std::ostream & | Message (bool Leader=true) const |
Output info message. More... | |
std::ostream & | Message (int Level, bool Leader=true) const |
Output info message. More... | |
int | Verbosity () const |
Retrieve the verbosity level. More... | |
Private Attributes | |
int | m_verbose |
Level of verbosity. More... | |
bool | m_status |
Failure status flag. More... | |
std::ostringstream | m_null_stream |
Pointer to stream when in non-verbose mode. More... | |
LDASTools::AL::MemChecker::Trigger | gc_trigger |
Trigger garbage collection. More... | |
Provide standard routines for unit testing of code.
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
Check for error conditions.
|
inline |
Check for error conditions.
|
inline |
Exit with the appropriate exit code.
|
inline |
Initialize the class with command line arguments.
|
inline |
Check if in verbose mode.
|
inline |
Output info message.
|
inline |
Output info message.
|
inline |
Retrieve the verbosity level.
|
private |
Trigger garbage collection.
|
mutableprivate |
Pointer to stream when in non-verbose mode.
|
private |
Failure status flag.
|
private |
Level of verbosity.