gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
unittest.cc File Reference
#include "unittest/unittest.hh"
#include <cstdlib>
#include "base/cprintf.hh"

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...
 

Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6