UnitTestable Class Reference

Back to the index.

Static Public Member Functions | List of all members
UnitTestable Class Reference

Base class for unit testable classes. More...

#include <UnitTest.h>

Inheritance diagram for UnitTestable:
CacheComponent Checksum Command CommandInterpreter ComponentFactory CPUComponent DummyComponent EscapedString FileLoader FileLoader_aout FileLoader_bout FileLoader_ELF FileLoader_raw MachineComponent MainbusComponent RAMComponent RootComponent StateVariable StringHelper SymbolRegistry

Static Public Member Functions

static void RunUnitTests (int &nSucceeded, int &nFailures)
 Runs unit test cases. More...
 

Detailed Description

Base class for unit testable classes.

A class which inherits from the UnitTestable class exposes a function, RunUnitTests(int&, int&), which runs unit tests, and returns the number of failed test cases.

Definition at line 74 of file UnitTest.h.

Member Function Documentation

◆ RunUnitTests()

static void UnitTestable::RunUnitTests ( int &  nSucceeded,
int &  nFailures 
)
static

Runs unit test cases.

Parameters
nSucceededA reference to a variable which keeps count of the number of succeeded test cases.
nFailuresA reference to a variable which keeps count of the number of failed test cases.

The documentation for this class was generated from the following file:

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18