gem5
|
Go to the source code of this file.
Namespaces | |
UnitTest | |
Functions | |
void | UnitTest::checkVal (const char *file, const unsigned line, const char *test, const bool result) |
Function that actually handles checking whether an EXPECT_* passed. More... | |
bool | UnitTest::printOnPass () |
Print on pass is a switch that specifies whether to print a message even when a check passes. More... | |
void | UnitTest::printOnPass (bool newVal) |
Function for setting print on pass. More... | |
unsigned | UnitTest::passes () |
Function that returns the current number of passed checks. More... | |
unsigned | UnitTest::failures () |
Function that returns the current number of failed checks. More... | |
unsigned | UnitTest::printResults () |
Function to call at the end of a test that prints an overall result and a summary of how many checks passed and failed. More... | |
void | UnitTest::reset () |
Zero the number of passes and failures so far. More... | |
void | UnitTest::setCase (const char *newCase) |
Sets the current test case. More... | |