unittest(3)

NAME

UnitTest

SYNOPSIS

#include <UnitTest.h>
Inherits Test.
Inherited by AUtilsTest, BFSAPHeuristicTest, BitStringTest,
CvrStgFileTest, DFSAPHeuristicTest, EdgeIteratorTest, EmbDataTest,
GraphTest, MatchingTest, MCryptPPTest, MHashKeyGenTest, MHashPPTest,
SampleValueAdjacencyListTest, SampleValueTest, SelectorTest, and
WKSConstructionHeuristicTest.
Public Member Functions
UnitTest (std::string n, TestSuite *s)
~UnitTest (void)
virtual void setup (void)
void run (void)
virtual void cleanup (void)
Protected Member Functions
void addTestCategory (TestCategory *tc)
void addTestResult (bool r)
char * strip_test (char *s)
Private Attributes
std::vector< TestCategory * > TestCategories
Globals GlobsBackup
    servers as a backup for the Globals object stored in Globs

Constructor & Destructor Documentation

UnitTest::UnitTest (std::string n, TestSuite * s) [inline]
Parameters:
n name of this unit test (probably the name of the tested class)
UnitTest::~UnitTest (void)

Member Function Documentation

void UnitTest::setup (void) [virtual]
setup the unit test - called before run
UnitTest::setup will (together with UnitTest::cleanup) save and restore the object stored in Globs so they should be called from the
corresponding functions in the derived object if the derived unit test manipulates the Globs object.
Reimplemented in AudioSampleValueTest, AuFileTest, BFSAPHeuristicTest, BitStringTest, BmpFileTest, BmpOS2FileTest, BmpPaletteSampleValueTest, BmpRGBSampleValueTest, BmpWinFileTest, DFSAPHeuristicTest, EdgeIteratorTest, GraphTest, JpegFileTest, JpegSampleValueTest, MatchingTest, SampleValueAdjacencyListTest, SelectorTest, WavFileTest, WavPCMSampleValueTest, and WKSConstructionHeuristicTest.
void UnitTest::run (void) [virtual]
Implements Test.
void UnitTest::cleanup (void) [virtual]
cleanup the unit test - called after run
Reimplemented in AudioSampleValueTest, AuFileTest, BFSAPHeuristicTest, BitStringTest, BmpFileTest, BmpOS2FileTest, BmpPaletteSampleValueTest, BmpRGBSampleValueTest, BmpWinFileTest, DFSAPHeuristicTest, EdgeIteratorTest, GraphTest, JpegFileTest, JpegSampleValueTest, MatchingTest, SelectorTest, WavFileTest, WavPCMSampleValueTest, and WKSConstructionHeuristicTest.
void UnitTest::addTestCategory (TestCategory * tc) [protected] void UnitTest::addTestResult (bool r) [protected] char* UnitTest::strip_test (char * s) [inline, protected]

Member Data Documentation

std::vector<TestCategory*> UnitTest::TestCategories [private] Globals UnitTest::GlobsBackup [private]

Author

Generated automatically by Doxygen for steghide from the source code.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout