SparseBitmapTest Class Reference

Unit tests for SparseBitmap. More...

Inheritance diagram for SparseBitmapTest:

TestBase TraceTarget List of all members.

Public Member Functions

 SparseBitmapTest ()
virtual void testCaseTearDown ()
 Equivalent to JUnit TestCase.tearDown; this is called after each test case method is invoked.
void testBasic ()
void testSpread ()
void testSizes ()
void testFullDirectory ()
TestSuitereleaseTestSuite ()
void beforeTestCase (std::string testCaseName)
void afterTestCase (std::string testCaseName)
virtual void testCaseSetUp ()
 Equivalent to JUnit TestCase.setUp; this is called before each test case method is invoked.
virtual void notifyTrace (std::string source, TraceLevel level, std::string message)
 Receives notification when a trace event occurs.
virtual TraceLevel getSourceTraceLevel (std::string source)
 Gets the level at which a particular source should be traced.

Static Public Member Functions

static void readParams (int argc, char **argv)
 Parses the command line.

Static Public Attributes

static ParamName paramTestSuiteName
static ParamName paramTraceFileName
static ParamName paramDictionaryFileName
static ParamName paramTraceLevel
static ParamName paramStatsFileName
static ParamName paramTraceStdout
static ParamName paramDegreeOfParallelism
static ConfigMap configMap
 Configuration parameters.

Protected Member Functions

void snooze (uint nSeconds)

Protected Attributes

TestSuitepTestSuite
 Boost test suite.
boost::shared_ptr< TestBasepTestObj
std::ofstream traceStream
 Output file stream for tracing.
StrictMutex traceMutex
 Protects traceStream.
std::string testName
 Name of test.
TraceLevel traceLevel
 Level at which to trace test execution.
FileStatsTarget statsTarget
 Output for stats.
StatsTimer statsTimer
 Timer for stats collection.
bool traceStdout
 Copy trace output to stdout.
bool traceFile
 Copy trace output to file.
TestCaseGroup defaultTests
TestCaseGroup extraTests

Static Protected Attributes

static bool runAll
 Run all test cases, including the extra tests.
static std::string runSingle
 Run only the test case of this name.

Private Member Functions

void openStorage (DeviceMode deviceMode)
void closeStorage ()

Private Attributes

SharedRandomAccessDevice pDevice
SharedCache pCache
SharedSegmentFactory pSegmentFactory
SharedSegment pSegment
SegmentAccessor segmentAccessor

Static Private Attributes

static const DeviceId BITMAP_DEVICE_ID
 Designated device ID for SparseBitmap unit tests.

Detailed Description

Unit tests for SparseBitmap.

Definition at line 407 of file SparseBitmapTest.cpp.


Constructor & Destructor Documentation

SparseBitmapTest::SparseBitmapTest (  )  [inline, explicit]

Definition at line 421 of file SparseBitmapTest.cpp.

References testBasic(), testFullDirectory(), testSizes(), and testSpread().

00422     {
00423         FENNEL_UNIT_TEST_CASE(SparseBitmapTest,testBasic);
00424         FENNEL_UNIT_TEST_CASE(SparseBitmapTest,testSpread);
00425         FENNEL_UNIT_TEST_CASE(SparseBitmapTest,testSizes);
00426         FENNEL_UNIT_TEST_CASE(SparseBitmapTest,testFullDirectory);
00427     }


Member Function Documentation

void SparseBitmapTest::openStorage ( DeviceMode  deviceMode  )  [private]

Definition at line 442 of file SparseBitmapTest.cpp.

References BITMAP_DEVICE_ID, TestBase::configMap, DeviceMode::create, LinearDeviceSegmentParams::firstBlockId, MAXU, Cache::newCache(), SegmentFactory::newSegmentFactory(), LinearDeviceSegmentParams::nPagesAllocated, pCache, SegmentAccessor::pCacheAccessor, pDevice, SegmentAccessor::pSegment, pSegment, pSegmentFactory, CacheParams::readConfig(), segmentAccessor, CompoundId::setBlockNum(), and CompoundId::setDeviceId().

Referenced by testBasic(), testFullDirectory(), testSizes(), and testSpread().

00443 {
00444     // Create or load a file device
00445     pDevice.reset(
00446         new RandomAccessFileDevice(
00447             "bitmap.dat",
00448             deviceMode,
00449             0));
00450 
00451     // Set up the cache
00452     CacheParams cacheParams;
00453     cacheParams.readConfig(configMap);
00454     pCache = Cache::newCache(cacheParams);
00455     pCache->registerDevice(BITMAP_DEVICE_ID, pDevice);
00456 
00457     // Map a segment onto the file
00458     pSegmentFactory =
00459         SegmentFactory::newSegmentFactory(configMap, shared_from_this());
00460     LinearDeviceSegmentParams segParams;
00461     CompoundId::setDeviceId(segParams.firstBlockId, BITMAP_DEVICE_ID);
00462     CompoundId::setBlockNum(segParams.firstBlockId, 0);
00463     if (!deviceMode.create) {
00464         segParams.nPagesAllocated = MAXU;
00465     }
00466     pSegment = pSegmentFactory->newLinearDeviceSegment(
00467         pCache,
00468         segParams);
00469     segmentAccessor.pSegment = pSegment;
00470     segmentAccessor.pCacheAccessor = pCache;
00471 }

void SparseBitmapTest::closeStorage (  )  [private]

Definition at line 480 of file SparseBitmapTest.cpp.

References BITMAP_DEVICE_ID, pCache, pDevice, pSegment, pSegmentFactory, SegmentAccessor::reset(), and segmentAccessor.

Referenced by testBasic(), testCaseTearDown(), and testSpread().

00481 {
00482     segmentAccessor.reset();
00483     if (pSegment) {
00484         assert(pSegment.unique());
00485         pSegment.reset();
00486     }
00487     if (pSegmentFactory) {
00488         assert(pSegmentFactory.unique());
00489         pSegmentFactory.reset();
00490     }
00491     if (pCache) {
00492         pCache->unregisterDevice(BITMAP_DEVICE_ID);
00493         assert(pCache.unique());
00494         pCache.reset();
00495     }
00496     if (pDevice) {
00497         assert(pDevice.unique());
00498         pDevice.reset();
00499     }
00500 }

void SparseBitmapTest::testCaseTearDown (  )  [virtual]

Equivalent to JUnit TestCase.tearDown; this is called after each test case method is invoked.

Default is no-op.

Reimplemented from TestBase.

Definition at line 473 of file SparseBitmapTest.cpp.

References closeStorage(), and TestBase::testCaseTearDown().

00474 {
00475     // Regardless of how the test ends, be sure to close all resources
00476     closeStorage();
00477     TestBase::testCaseTearDown();
00478 }

void SparseBitmapTest::testBasic (  ) 

Definition at line 502 of file SparseBitmapTest.cpp.

References closeStorage(), DeviceMode::createNew, SparseBitmap::getBit(), SparseBitmap::getDirPageId(), DeviceMode::load, openStorage(), segmentAccessor, and SparseBitmap::setBit().

Referenced by SparseBitmapTest().

00503 {
00504     // Create a new bitmap and set a single bit at offset 0
00505     PageId dirPageId;
00506     openStorage(DeviceMode::createNew);
00507 
00508     {
00509         SparseBitmap bitmap(segmentAccessor);
00510         dirPageId = bitmap.getDirPageId();
00511         bitmap.setBit(0, 1);
00512 
00513         // Make sure we can read the bit back
00514         bool x = bitmap.getBit(0);
00515         BOOST_CHECK_EQUAL(1, x);
00516     }
00517 
00518     // Now close and re-open storage
00519     closeStorage();
00520     openStorage(DeviceMode::load);
00521 
00522     {
00523         // Verify that we can still read the bit back
00524         SparseBitmap bitmap(segmentAccessor, dirPageId);
00525         bool x = bitmap.getBit(0);
00526         BOOST_CHECK_EQUAL(1, x);
00527     }
00528 }

void SparseBitmapTest::testSpread (  ) 

Definition at line 530 of file SparseBitmapTest.cpp.

References closeStorage(), DeviceMode::createNew, SparseBitmap::getBit(), SparseBitmap::getDirPageId(), DeviceMode::load, openStorage(), segmentAccessor, and SparseBitmap::setBit().

Referenced by SparseBitmapTest().

00531 {
00532     // Similar to testBasic, but use a bunch of predefined bit offsets
00533 
00534     std::vector<SparseBitmapOffset> filledOffsets;
00535     filledOffsets.push_back(5);
00536     filledOffsets.push_back(6);
00537     filledOffsets.push_back(8);
00538     filledOffsets.push_back(100);
00539     filledOffsets.push_back(50000);
00540     filledOffsets.push_back(50001);
00541     filledOffsets.push_back(50004);
00542     filledOffsets.push_back(55000);
00543 
00544     std::vector<SparseBitmapOffset> emptyOffsets;
00545     emptyOffsets.push_back(0);
00546     emptyOffsets.push_back(7);
00547     emptyOffsets.push_back(1000);
00548     emptyOffsets.push_back(50003);
00549     emptyOffsets.push_back(1000000);
00550 
00551     PageId dirPageId;
00552     openStorage(DeviceMode::createNew);
00553 
00554     {
00555         SparseBitmap bitmap(segmentAccessor);
00556         dirPageId = bitmap.getDirPageId();
00557         for (int i = 0; i < filledOffsets.size(); ++i) {
00558             bitmap.setBit(filledOffsets[i], 1);
00559         }
00560     }
00561 
00562     closeStorage();
00563 
00564     openStorage(DeviceMode::load);
00565 
00566     {
00567         SparseBitmap bitmap(segmentAccessor, dirPageId);
00568         for (int i = 0; i < filledOffsets.size(); ++i) {
00569             bool x = bitmap.getBit(filledOffsets[i]);
00570             BOOST_CHECK_EQUAL(1, x);
00571         }
00572 
00573         // Also verify that some bits didn't get accidentally set
00574         for (int i = 0; i < emptyOffsets.size(); ++i) {
00575             bool x = bitmap.getBit(emptyOffsets[i]);
00576             BOOST_CHECK_EQUAL(0, x);
00577         }
00578     }
00579 }

void SparseBitmapTest::testSizes (  ) 

Definition at line 581 of file SparseBitmapTest.cpp.

References DeviceMode::createNew, SparseBitmap::getBitsPerLeaf(), SparseBitmap::getMaxDirectoryEntries(), openStorage(), pCache, and segmentAccessor.

Referenced by SparseBitmapTest().

00582 {
00583     openStorage(DeviceMode::createNew);
00584     if (pCache->getPageSize() != 4096) {
00585         // Expected values below are only valid for 4K page size
00586         return;
00587     }
00588     SparseBitmap bitmap(segmentAccessor);
00589     BOOST_CHECK_EQUAL(32640, bitmap.getBitsPerLeaf());
00590     BOOST_CHECK_EQUAL(255, bitmap.getMaxDirectoryEntries());
00591 }

void SparseBitmapTest::testFullDirectory (  ) 

Definition at line 593 of file SparseBitmapTest.cpp.

References DeviceMode::createNew, SparseBitmap::getBitsPerLeaf(), SparseBitmap::getMaxDirectoryEntries(), openStorage(), segmentAccessor, and SparseBitmap::setBit().

Referenced by SparseBitmapTest().

00594 {
00595     // Negative test to make sure we get the expected failure
00596     // when the directory fills up completely
00597     openStorage(DeviceMode::createNew);
00598     SparseBitmap bitmap(segmentAccessor);
00599     int iOffset = 10;
00600     for (int i = 0; i < bitmap.getMaxDirectoryEntries(); ++i) {
00601         bitmap.setBit(iOffset, 1);
00602         // stride forward to next leaf
00603         iOffset += bitmap.getBitsPerLeaf();
00604     }
00605     try {
00606         bitmap.setBit(iOffset, 1);
00607         BOOST_FAIL("directory full exception expected");
00608     } catch (std::exception ex) {
00609         // failure expected
00610     }
00611 }

void TestBase::snooze ( uint  nSeconds  )  [protected, inherited]

Definition at line 263 of file TestBase.cpp.

Referenced by DatabaseTest::executeForceTxn(), ThreadedTestBase::runThreadedTestCase(), PagingTestBase::testCacheResize(), BTreeTxnTest::testCheckpoint(), PagingTestBase::testCheckpointGuarded(), PagingTestBase::testPrefetch(), and PagingTestBase::testPrefetchBatch().

00264 {
00265 #ifdef __MSVC__
00266     ::_sleep(nSeconds*1000);
00267 #else
00268     ::sleep(nSeconds);
00269 #endif
00270 }

void TestBase::readParams ( int  argc,
char **  argv 
) [static, inherited]

Parses the command line.

format: [-v] [-t TEST | -all] {param=val}* [CONFIGFILE | -] Normally, the test program runs the default test cases. With the option "-all", runs the extra test cases as well. With the option "-t TEST", runs only the single test case named TEST. CONFIGFILE is read to load configuration parameters. Configuration parameters can also be set ad hoc, from the command line, as pairs name=val. These take precedence.

Definition at line 108 of file TestBase.cpp.

References TestBase::configMap, ConfigMap::dumpParams(), ConfigMap::isParamSet(), ConfigMap::mergeFrom(), TestBase::paramDictionaryFileName, ConfigMap::readParams(), TestBase::runAll, TestBase::runSingle, ConfigMap::setStringParam(), and verbose.

00109 {
00110     bool verbose = false;
00111     ConfigMap adhocMap;
00112 
00113     for (int i = 1; i < argc; ++i) {
00114         std::string arg = argv[i];
00115         if (argv[i][0] == '-') {
00116             if (arg == "-v") {
00117                 verbose = true;
00118             } else if (arg == "-") {
00119                 configMap.readParams(std::cin);
00120             } else if (arg == "-all") {
00121                 runAll = true;
00122             } else if (arg == "-t") {   // -t TEST
00123                 permAssert(i + 1 < argc);
00124                 runSingle = argv[++i];
00125             } else if (arg[1] == 't') { // allow -tTEST
00126                 runSingle = arg.substr(2);
00127             }
00128         } else {
00129             int i = arg.find("=");
00130             if ((0 < i) && (i < arg.size())) {
00131                 // an ad hoc parameter
00132                 std::string key = arg.substr(0,i);
00133                 std::string val = arg.substr(i + 1);
00134                 adhocMap.setStringParam(key,val);
00135             } else {
00136                 // a config file name
00137                 std::ifstream configFile(arg.c_str());
00138                 assert(configFile.good());
00139                 configMap.readParams(configFile);
00140             }
00141         }
00142     }
00143     configMap.mergeFrom(adhocMap);
00144 
00145     // set a default dictionary file location for use by tests that need a
00146     // small non-random sorted data set
00147     if (!configMap.isParamSet(paramDictionaryFileName)) {
00148         std::string dictFileName = "dictWords";
00149         configMap.setStringParam(paramDictionaryFileName,dictFileName);
00150     }
00151 
00152     if (verbose) {
00153         configMap.dumpParams(std::cout);
00154     }
00155 }

TestSuite * TestBase::releaseTestSuite (  )  [inherited]

Definition at line 157 of file TestBase.cpp.

References TestBase::TestCaseGroup::addAllToTestSuite(), TestBase::defaultTests, TestBase::extraTests, TestBase::TestCaseGroup::findTest(), TestBase::pTestObj, TestBase::pTestSuite, TestBase::runAll, TestBase::runSingle, and TestBase::testName.

00158 {
00159     assert(pTestObj);
00160     assert(pTestObj.use_count() > 1);
00161 
00162     // release self-reference now that all test cases have been registered
00163     pTestObj.reset();
00164 
00165     TestSuite* pTestSuite = BOOST_TEST_SUITE(testName.c_str());
00166 
00167     if (runSingle.size()) {
00168         test_unit *p =  defaultTests.findTest(runSingle);
00169         if (!p) {
00170             p = extraTests.findTest(runSingle);
00171         }
00172         if (!p) {
00173             std::cerr << "test " << runSingle << " not found\n";
00174             exit(2);
00175         }
00176         pTestSuite->add(p);
00177     } else {
00178         defaultTests.addAllToTestSuite(pTestSuite);
00179         if (runAll) {
00180             extraTests.addAllToTestSuite(pTestSuite);
00181         }
00182     }
00183     return pTestSuite;
00184 }

void TestBase::beforeTestCase ( std::string  testCaseName  )  [inherited]

Definition at line 214 of file TestBase.cpp.

References TestBase::configMap, TraceSource::initTraceSource(), AutoBacktrace::install(), TestBase::notifyTrace(), AutoBacktrace::setOutputStream(), AutoBacktrace::setTraceTarget(), TestBase::testName, and TRACE_INFO.

00215 {
00216     notifyTrace(testName,TRACE_INFO,"ENTER:  " + testCaseName);
00217 
00218     // Install the AutoBacktrace signal handler now, after
00219     // boost::execution_monitor::catch_signals() has installed its own, so that
00220     // on SIGABRT AutoBacktrace goes first, prints the backtrace, then chains
00221     // to boost, which handles the error.
00222     AutoBacktrace::setOutputStream();
00223     AutoBacktrace::setTraceTarget(shared_from_this());
00224     AutoBacktrace::install();
00225     configMap.initTraceSource(shared_from_this(), "testConfig");
00226 }

void TestBase::afterTestCase ( std::string  testCaseName  )  [inherited]

Definition at line 228 of file TestBase.cpp.

References TestBase::configMap, TraceSource::disableTracing(), TestBase::notifyTrace(), AutoBacktrace::setTraceTarget(), TestBase::testName, and TRACE_INFO.

00229 {
00230     AutoBacktrace::setTraceTarget();
00231     configMap.disableTracing();
00232     notifyTrace(testName,TRACE_INFO,"LEAVE:  " + testCaseName);
00233 }

void TestBase::testCaseSetUp (  )  [virtual, inherited]

Equivalent to JUnit TestCase.setUp; this is called before each test case method is invoked.

Default is no-op.

Reimplemented in LbmEntryTest, LbmExecStreamTestBase, LbmLoadBitmapTest, LbmSearchTest, LbmSplicerExecStreamTest, LcsClusterAppendExecStreamTest, LcsClusterReplaceExecStreamTest, LcsMultiClusterAppendTest, LcsRowScanExecStreamTest, BTreeReadersTest, BTreeTest, BTreeTxnTest, ExecStreamGovernorTest, ExecStreamTestBase, ExecStreamUnitTestBase, ExternalSortExecStreamTest, LhxHashTableTest, LogicalTxnTest, and SnapshotSegmentTestBase.

Definition at line 235 of file TestBase.cpp.

Referenced by ExecStreamTestBase::testCaseSetUp().

00236 {
00237 }

void TestBase::notifyTrace ( std::string  source,
TraceLevel  level,
std::string  message 
) [virtual, inherited]

Receives notification when a trace event occurs.

Parameters:
source the facility from which the message originated
level the trace event severity level
message the text of the message

Implements TraceTarget.

Definition at line 243 of file TestBase.cpp.

References TestBase::traceFile, TestBase::traceMutex, TestBase::traceStdout, and TestBase::traceStream.

Referenced by TestBase::afterTestCase(), and TestBase::beforeTestCase().

00244 {
00245     if (traceFile || traceStdout) {
00246         StrictMutexGuard traceMutexGuard(traceMutex);
00247         if (traceFile) {
00248             traceStream << "[" << source << "] " << message << std::endl;
00249             traceStream.flush();
00250         }
00251         if (traceStdout) {
00252             std::cout << "[" << source << "] " << message << std::endl;
00253             std::cout.flush();
00254         }
00255     }
00256 }

TraceLevel TestBase::getSourceTraceLevel ( std::string  source  )  [virtual, inherited]

Gets the level at which a particular source should be traced.

Parameters:
source name of source to be traced
Returns:
minimum severity level which should be traced

Implements TraceTarget.

Definition at line 258 of file TestBase.cpp.

References TestBase::traceLevel.

Referenced by LbmExecStreamTestBase::generateBitmaps().

00259 {
00260     return traceLevel;
00261 }


Member Data Documentation

SharedRandomAccessDevice SparseBitmapTest::pDevice [private]

Definition at line 409 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), and openStorage().

SharedCache SparseBitmapTest::pCache [private]

Definition at line 410 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), openStorage(), and testSizes().

SharedSegmentFactory SparseBitmapTest::pSegmentFactory [private]

Definition at line 411 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), and openStorage().

SharedSegment SparseBitmapTest::pSegment [private]

Definition at line 412 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), and openStorage().

SegmentAccessor SparseBitmapTest::segmentAccessor [private]

Definition at line 413 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), openStorage(), testBasic(), testFullDirectory(), testSizes(), and testSpread().

const DeviceId SparseBitmapTest::BITMAP_DEVICE_ID [static, private]

Designated device ID for SparseBitmap unit tests.

Definition at line 415 of file SparseBitmapTest.cpp.

Referenced by closeStorage(), and openStorage().

TestSuite* TestBase::pTestSuite [protected, inherited]

Boost test suite.

Definition at line 59 of file TestBase.h.

Referenced by TestBase::releaseTestSuite().

boost::shared_ptr<TestBase> TestBase::pTestObj [protected, inherited]

Definition at line 61 of file TestBase.h.

Referenced by TestBase::releaseTestSuite(), and TestBase::TestBase().

std::ofstream TestBase::traceStream [protected, inherited]

Output file stream for tracing.

Definition at line 66 of file TestBase.h.

Referenced by TestBase::notifyTrace(), TestBase::TestBase(), and TestBase::~TestBase().

StrictMutex TestBase::traceMutex [protected, inherited]

Protects traceStream.

Definition at line 71 of file TestBase.h.

Referenced by TestBase::notifyTrace().

std::string TestBase::testName [protected, inherited]

Name of test.

Definition at line 76 of file TestBase.h.

Referenced by TestBase::afterTestCase(), TestBase::beforeTestCase(), TestBase::releaseTestSuite(), TestBase::TestBase(), LhxHashTableTest::testInsert1Ka(), and LhxHashTableTest::testInsert1Kb().

TraceLevel TestBase::traceLevel [protected, inherited]

Level at which to trace test execution.

Definition at line 81 of file TestBase.h.

Referenced by TestBase::getSourceTraceLevel(), and TestBase::TestBase().

FileStatsTarget TestBase::statsTarget [protected, inherited]

Output for stats.

Definition at line 86 of file TestBase.h.

StatsTimer TestBase::statsTimer [protected, inherited]

Timer for stats collection.

Definition at line 91 of file TestBase.h.

Referenced by CacheTestBase::closeStorage(), CacheTestBase::openStorage(), BTreeTxnTest::testCaseSetUp(), BTreeTxnTest::testCaseTearDown(), and BTreeTxnTest::testTxns().

bool TestBase::traceStdout [protected, inherited]

Copy trace output to stdout.

Definition at line 99 of file TestBase.h.

Referenced by TestBase::notifyTrace(), and TestBase::TestBase().

bool TestBase::traceFile [protected, inherited]

Copy trace output to file.

Definition at line 104 of file TestBase.h.

Referenced by TestBase::notifyTrace(), and TestBase::TestBase().

bool TestBase::runAll [static, protected, inherited]

Run all test cases, including the extra tests.

(static, since set by readParams())

Definition at line 110 of file TestBase.h.

Referenced by TestBase::readParams(), and TestBase::releaseTestSuite().

std::string TestBase::runSingle [static, protected, inherited]

Run only the test case of this name.

(static, since set by readParams())

Definition at line 116 of file TestBase.h.

Referenced by TestBase::readParams(), and TestBase::releaseTestSuite().

TestCaseGroup TestBase::defaultTests [protected, inherited]

Definition at line 139 of file TestBase.h.

Referenced by TestBase::releaseTestSuite().

TestCaseGroup TestBase::extraTests [protected, inherited]

Definition at line 140 of file TestBase.h.

Referenced by TestBase::releaseTestSuite().

ParamName TestBase::paramTestSuiteName [static, inherited]

Definition at line 143 of file TestBase.h.

Referenced by TestBase::TestBase().

ParamName TestBase::paramTraceFileName [static, inherited]

Definition at line 144 of file TestBase.h.

Referenced by TestBase::TestBase().

ParamName TestBase::paramDictionaryFileName [static, inherited]

Definition at line 145 of file TestBase.h.

Referenced by TestBase::readParams(), SegStreamTest::testRead(), and SegStreamTest::testWrite().

ParamName TestBase::paramTraceLevel [static, inherited]

Definition at line 146 of file TestBase.h.

Referenced by TestBase::TestBase().

ParamName TestBase::paramStatsFileName [static, inherited]

Definition at line 147 of file TestBase.h.

ParamName TestBase::paramTraceStdout [static, inherited]

Definition at line 148 of file TestBase.h.

Referenced by TestBase::TestBase().

ParamName TestBase::paramDegreeOfParallelism [static, inherited]

Definition at line 149 of file TestBase.h.

Referenced by ParallelExecStreamSchedulerTest::ParallelExecStreamSchedulerTest().

ConfigMap TestBase::configMap [static, inherited]

Configuration parameters.

The reason this is static is so that no constructor parameters (which burden virtual bases) are needed.

Definition at line 155 of file TestBase.h.

Referenced by TestBase::afterTestCase(), TestBase::beforeTestCase(), BTreeTxnTest::BTreeTxnTest(), CacheTestBase::CacheTestBase(), BackupRestoreTest::createSnapshotData(), DatabaseTest::DatabaseTest(), TestOptionsTest::extra(), DatabaseTest::loadDatabase(), openStorage(), PagingTestBase::PagingTestBase(), ParallelExecStreamSchedulerTest::ParallelExecStreamSchedulerTest(), RandomAccessFileDeviceTest::RandomAccessFileDeviceTest(), TestBase::readParams(), SegStorageTestBase::SegStorageTestBase(), TestOptionsTest::test1(), TestOptionsTest::test2(), BackupRestoreTest::testBackupCleanup(), TestBase::TestBase(), BTreeTxnTest::testCaseSetUp(), BTreeTxnTest::testCheckpoint(), DatabaseTest::testCreateEmpty(), DatabaseTest::testForceTxns(), BackupRestoreTest::testHeaderBackupRestore(), SegPageEntryIterTest::testIter(), SegStreamTest::testRead(), BTreeTxnTest::testTxns(), SegStreamTest::testWrite(), ThreadedTestBase::ThreadedTestBase(), and TestBase::~TestBase().


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:47 2009 for Fennel by  doxygen 1.5.1