C# Class Lucene.Net.Index.TestCompoundFile

Inheritance: LuceneTestCase
Datei anzeigen Open project: apache/lucenenet

Private Methods

Method Description
AssertEqualArrays ( string msg, byte expected, byte test, int start, int len ) : void
AssertSameSeekBehavior ( string msg, IndexInput expected, IndexInput actual ) : void
AssertSameStreams ( string msg, IndexInput expected, IndexInput test ) : void
AssertSameStreams ( string msg, IndexInput expected, IndexInput actual, long seekTo ) : void
CheckFiles ( Directory dir ) : void
CreateRandomFile ( Directory dir, string name, int size ) : void

Creates a file of the specified size with random data.

CreateSequenceFile ( Directory dir, string name, sbyte start, int size ) : void

Creates a file of the specified size with sequential data. The first byte is written as the start byte provided. All subsequent bytes are computed as start + offset where offset is the number of the byte.

Demo_FSIndexInputBug ( Directory fsdir, string file ) : void
SetUp ( ) : void
SetUp_2 ( ) : void

Setup a larger compound file with a number of components, each of which is a sequential file (so that we can easily tell that we are reading in the right byte). The methods sets up 20 files - f0 to f19, the size of each file is 1000 bytes.

TearDown ( ) : void
TestAddExternalFile ( ) : void
TestAppend ( ) : void
TestAppendTwice ( ) : void
TestClonedStreamsClosing ( ) : void
TestDoubleClose ( ) : void
TestEmptyCFS ( ) : void
TestFileNotFound ( ) : void
TestLargeWrites ( ) : void
TestListAll ( ) : void
TestManySubFiles ( ) : void
TestRandomAccess ( ) : void
TestRandomAccessClones ( ) : void
TestRandomFiles ( ) : void
TestReadAfterClose ( ) : void
TestReadNestedCFP ( ) : void
TestReadPastEOF ( ) : void
TestSingleFile ( ) : void
TestTwoFiles ( ) : void