tests
Class IXTest

java.lang.Object
  extended by tests.TestDriver
      extended by tests.IXTest
All Implemented Interfaces:
GlobalConst

 class IXTest
extends TestDriver

Test suite for the index layer.


Nested Class Summary
 
Nested classes/interfaces inherited from class tests.TestDriver
TestDriver.CountData
 
Field Summary
private static int FILE_SIZE
          Size of index files to create in test cases.
private static java.lang.String TEST_NAME
          The display name of the test suite.
 
Fields inherited from class tests.TestDriver
BUF_POLICY, BUF_SIZE, counts, DB_PATH, DB_SIZE, FAIL, PASS, random
 
Fields inherited from interface global.GlobalConst
EMPTY_SLOT, FIRST_PAGEID, INVALID_PAGEID, MAX_COLSIZE, MAX_TUPSIZE, NAME_MAXLEN, PAGE_SIZE, PIN_DISKIO, PIN_MEMCPY, UNPIN_CLEAN, UNPIN_DIRTY
 
Constructor Summary
IXTest()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Test application entry point; runs all tests.
protected  java.lang.String randEmail()
          Using the novel algorithm described here: http://www.homestarrunner.com/sbemail143.html
protected  SearchKey randKey(int type)
          Gets a random search key, given the type.
protected  boolean test1()
          Simple use of temp index.
protected  boolean test2()
          HashIndex under normal conditions.
protected  boolean test3()
          Index package error cases.
protected  void testrand()
          Test random email generator.
 
Methods inherited from class tests.TestDriver
create_minibase, delete_minibase, initCounts, initRandom, load_minibase, printCounters, printSummary, saveCounts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_NAME

private static final java.lang.String TEST_NAME
The display name of the test suite.

See Also:
Constant Field Values

FILE_SIZE

private static final int FILE_SIZE
Size of index files to create in test cases.

See Also:
Constant Field Values
Constructor Detail

IXTest

IXTest()
Method Detail

main

public static void main(java.lang.String[] argv)
Test application entry point; runs all tests.


test1

protected boolean test1()
Simple use of temp index.


test2

protected boolean test2()
HashIndex under normal conditions.


test3

protected boolean test3()
Index package error cases.


randKey

protected SearchKey randKey(int type)
Gets a random search key, given the type.


testrand

protected void testrand()
Test random email generator.


randEmail

protected java.lang.String randEmail()
Using the novel algorithm described here: http://www.homestarrunner.com/sbemail143.html