Classes | |
class | TestFailure |
An exception class representing a test assertion failure. More... | |
struct | TestFn |
Helper structure for defining named test functions. More... | |
Functions | |
void | TestAssert (bool condition, const char *message, const char *file, unsigned int line) |
Throws a TestFailure exception if the given condition is false. | |
int | RunTests (TestFn fnarray[], std::ostream &log) |
Runs a sequence of tests. |
int HSHGTest::RunTests | ( | TestFn | fnarray[], | |
std::ostream & | log | |||
) | [inline] |
Runs a sequence of tests.
fnarray | an array of TestFn structs terminated by a final entry whose fptr member is NULL | |
log | an output stream for writing test output |
void HSHGTest::TestAssert | ( | bool | condition, | |
const char * | message, | |||
const char * | file, | |||
unsigned int | line | |||
) | [inline] |
Throws a TestFailure exception if the given condition is false.