ldas-tools-al
2.6.6
|
Provide standard routines for unit testing of code. More...
#include <UnitTestTS.h>
Public Member Functions | |
UnitTestTS (void) | |
Constructor. More... | |
~UnitTestTS (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... | |
void | Lock () |
std::ostream & | Message (bool Leader=true) const |
Output info message. More... | |
std::ostream & | Message (int Level, bool Leader=true) const |
Output info message. More... | |
void | UnLock () |
UnitTestTS (void) | |
Constructor. More... | |
~UnitTestTS (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... | |
void | Lock () |
std::ostream & | Message (bool Leader=true) const |
Output info message. More... | |
std::ostream & | Message (int Level, bool Leader=true) const |
Output info message. More... | |
void | UnLock () |
UnitTestTS (void) | |
Constructor. More... | |
~UnitTestTS (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... | |
void | Lock () |
std::ostream & | Message (bool Leader=true) const |
Output info message. More... | |
std::ostream & | Message (int Level, bool Leader=true) const |
Output info message. More... | |
void | UnLock () |
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::MutexLock::baton_type | m_key |
Lock when used in a mult-threaded environment. More... | |
LDASTools::AL::MemChecker::Trigger | gc_trigger |
Trigger garbage collection. More... | |
Provide standard routines for unit testing of code.
|
inline |
Constructor.
|
inline |
Destructor.
LDASTools::Testing::UnitTestTS::UnitTestTS | ( | void | ) |
Constructor.
LDASTools::Testing::UnitTestTS::~UnitTestTS | ( | void | ) |
Destructor.
LDASTools::Testing::UnitTestTS::UnitTestTS | ( | void | ) |
Constructor.
LDASTools::Testing::UnitTestTS::~UnitTestTS | ( | void | ) |
Destructor.
|
inline |
Check for error conditions.
std::ostream& LDASTools::Testing::UnitTestTS::Check | ( | bool | TestResult | ) |
Check for error conditions.
std::ostream& LDASTools::Testing::UnitTestTS::Check | ( | bool | TestResult | ) |
Check for error conditions.
|
inline |
Check for error conditions.
void LDASTools::Testing::UnitTestTS::Check | ( | bool | TestResult, |
std::string | Message | ||
) |
Check for error conditions.
void LDASTools::Testing::UnitTestTS::Check | ( | bool | TestResult, |
std::string | Message | ||
) |
Check for error conditions.
|
inline |
Exit with the appropriate exit code.
void LDASTools::Testing::UnitTestTS::Exit | ( | void | ) |
Exit with the appropriate exit code.
void LDASTools::Testing::UnitTestTS::Exit | ( | void | ) |
Exit with the appropriate exit code.
|
inline |
Initialize the class with command line arguments.
void LDASTools::Testing::UnitTestTS::Init | ( | int | ArgC, |
char ** | ArgV | ||
) |
Initialize the class with command line arguments.
void LDASTools::Testing::UnitTestTS::Init | ( | int | ArgC, |
char ** | ArgV | ||
) |
Initialize the class with command line arguments.
|
inline |
Check if in verbose mode.
|
inline |
Check if in verbose mode.
|
inline |
Check if in verbose mode.
|
inline |
void LDASTools::Testing::UnitTestTS::Lock | ( | ) |
void LDASTools::Testing::UnitTestTS::Lock | ( | ) |
|
inline |
Output info message.
std::ostream& LDASTools::Testing::UnitTestTS::Message | ( | bool | Leader = true | ) | const |
Output info message.
std::ostream& LDASTools::Testing::UnitTestTS::Message | ( | bool | Leader = true | ) | const |
Output info message.
|
inline |
Output info message.
std::ostream& LDASTools::Testing::UnitTestTS::Message | ( | int | Level, |
bool | Leader = true |
||
) | const |
Output info message.
std::ostream& LDASTools::Testing::UnitTestTS::Message | ( | int | Level, |
bool | Leader = true |
||
) | const |
Output info message.
|
inline |
void LDASTools::Testing::UnitTestTS::UnLock | ( | ) |
void LDASTools::Testing::UnitTestTS::UnLock | ( | ) |
|
private |
Trigger garbage collection.
|
private |
Lock when used in a mult-threaded environment.
|
mutableprivate |
Pointer to stream when in non-verbose mode.
|
private |
Failure status flag.
|
private |
Level of verbosity.