Provide standard routines for unit testing of code.
More...
#include <unittest.h>
|
| | UnitTest (void) |
| | Constructor.
|
| | ~UnitTest (void) |
| | Destructor.
|
| std::ostream & | Check (bool TestResult) |
| | Check for error conditions.
|
| void | Check (bool TestResult, std::string Message) |
| | Check for error conditions.
|
| void | Exit (void) |
| | Exit with the appropriate exit code.
|
| void | Init (int ArgC, char **ArgV) |
| | Initialize the class with command line arguments.
|
| bool | IsVerbose (int Level=0) const |
| | Check if in verbose mode.
|
| std::ostream & | Message (bool Leader=true) const |
| | Output info message.
|
| std::ostream & | Message (int Level, bool Leader=true) const |
| | Output info message.
|
| int | Verbosity () const |
| | Retrieve the verbosity level.
|
| | UnitTest (void) |
| | Constructor.
|
| | ~UnitTest (void) |
| | Destructor.
|
| std::ostream & | Check (bool TestResult) |
| | Check for error conditions.
|
| void | Check (bool TestResult, std::string Message) |
| | Check for error conditions.
|
| void | Exit (void) |
| | Exit with the appropriate exit code.
|
| void | Init (int ArgC, char **ArgV) |
| | Initialize the class with command line arguments.
|
| bool | IsVerbose (int Level=0) const |
| | Check if in verbose mode.
|
| std::ostream & | Message (bool Leader=true) const |
| | Output info message.
|
| std::ostream & | Message (int Level, bool Leader=true) const |
| | Output info message.
|
| int | Verbosity () const |
| | Retrieve the verbosity level.
|
Provide standard routines for unit testing of code.
◆ UnitTest() [1/2]
| LDASTools::Testing::UnitTest::UnitTest |
( |
void | | ) |
|
|
inline |
◆ ~UnitTest() [1/2]
| LDASTools::Testing::UnitTest::~UnitTest |
( |
void | | ) |
|
|
inline |
◆ UnitTest() [2/2]
| LDASTools::Testing::UnitTest::UnitTest |
( |
void | | ) |
|
◆ ~UnitTest() [2/2]
| LDASTools::Testing::UnitTest::~UnitTest |
( |
void | | ) |
|
◆ Check() [1/4]
| std::ostream & LDASTools::Testing::UnitTest::Check |
( |
bool | TestResult | ) |
|
|
inline |
Check for error conditions.
◆ Check() [2/4]
| std::ostream & LDASTools::Testing::UnitTest::Check |
( |
bool | TestResult | ) |
|
Check for error conditions.
◆ Check() [3/4]
| void LDASTools::Testing::UnitTest::Check |
( |
bool | TestResult, |
|
|
std::string | Message ) |
|
inline |
Check for error conditions.
◆ Check() [4/4]
| void LDASTools::Testing::UnitTest::Check |
( |
bool | TestResult, |
|
|
std::string | Message ) |
Check for error conditions.
◆ Exit() [1/2]
| void LDASTools::Testing::UnitTest::Exit |
( |
void | | ) |
|
|
inline |
Exit with the appropriate exit code.
◆ Exit() [2/2]
| void LDASTools::Testing::UnitTest::Exit |
( |
void | | ) |
|
Exit with the appropriate exit code.
◆ Init() [1/2]
| void LDASTools::Testing::UnitTest::Init |
( |
int | ArgC, |
|
|
char ** | ArgV ) |
|
inline |
Initialize the class with command line arguments.
◆ Init() [2/2]
| void LDASTools::Testing::UnitTest::Init |
( |
int | ArgC, |
|
|
char ** | ArgV ) |
Initialize the class with command line arguments.
◆ IsVerbose() [1/2]
| bool LDASTools::Testing::UnitTest::IsVerbose |
( |
int | Level = 0 | ) |
const |
|
inline |
Check if in verbose mode.
◆ IsVerbose() [2/2]
| bool LDASTools::Testing::UnitTest::IsVerbose |
( |
int | Level = 0 | ) |
const |
|
inline |
Check if in verbose mode.
◆ Message() [1/4]
| std::ostream & LDASTools::Testing::UnitTest::Message |
( |
bool | Leader = true | ) |
const |
|
inline |
◆ Message() [2/4]
| std::ostream & LDASTools::Testing::UnitTest::Message |
( |
bool | Leader = true | ) |
const |
◆ Message() [3/4]
| std::ostream & LDASTools::Testing::UnitTest::Message |
( |
int | Level, |
|
|
bool | Leader = true ) const |
|
inline |
◆ Message() [4/4]
| std::ostream & LDASTools::Testing::UnitTest::Message |
( |
int | Level, |
|
|
bool | Leader = true ) const |
◆ Verbosity() [1/2]
| int LDASTools::Testing::UnitTest::Verbosity |
( |
| ) |
const |
|
inline |
Retrieve the verbosity level.
◆ Verbosity() [2/2]
| int LDASTools::Testing::UnitTest::Verbosity |
( |
| ) |
const |
|
inline |
Retrieve the verbosity level.
◆ gc_trigger
Trigger garbage collection.
◆ m_null_stream
| std::ostringstream LDASTools::Testing::UnitTest::m_null_stream |
|
mutableprivate |
Pointer to stream when in non-verbose mode.
◆ m_status
| bool LDASTools::Testing::UnitTest::m_status |
|
private |
◆ m_verbose
| int LDASTools::Testing::UnitTest::m_verbose |
|
private |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/build/include/ldastoolsal/unittest.h
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.7-build/ldas-tools-al-2.6.7/src/unittest.h