Class BaseDocIdSetTestCase<T>
Base test class for Lucene.Net.Search.DocIdSets.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class BaseDocIdSetTestCase<T> : LuceneTestCase where T : DocIdSet
Type Parameters
Name | Description |
---|---|
T |
Methods
AssertEquals(int, BitSet, T)
Assert that the content of the Lucene.Net.Search.DocIdSet is the same as the content of the J2N.Collections.BitSet.
Declaration
public virtual void AssertEquals(int numBits, BitSet ds1, T ds2)
Parameters
Type | Name | Description |
---|---|---|
int | numBits | |
BitSet | ds1 | |
T | ds2 |
CopyOf(BitSet, int)
Create a copy of the given J2N.Collections.BitSet which has length
bits.
Declaration
public abstract T CopyOf(BitSet bs, int length)
Parameters
Type | Name | Description |
---|---|---|
BitSet | bs | |
int | length |
Returns
Type | Description |
---|---|
T |
RandomSet(int, int)
Create a random set which has numBitsSet
of its numBits
bits set.
Declaration
protected static BitSet RandomSet(int numBits, int numBitsSet)
Parameters
Type | Name | Description |
---|---|---|
int | numBits | |
int | numBitsSet |
Returns
Type | Description |
---|---|
BitSet |
RandomSet(int, float)
Same as RandomSet(int, int) but given a load factor.
Declaration
protected static BitSet RandomSet(int numBits, float percentSet)
Parameters
Type | Name | Description |
---|---|---|
int | numBits | |
float | percentSet |
Returns
Type | Description |
---|---|
BitSet |
Test1Bit()
Test length=1.
Declaration
[Test]
public virtual void Test1Bit()
Test2Bits()
Test length=2.
Declaration
[Test]
public virtual void Test2Bits()
TestAgainstBitSet()
Compare the content of the set against a J2N.Collections.BitSet.
Declaration
[Test]
public virtual void TestAgainstBitSet()
TestNoBit()
Test length=0.
Declaration
[Test]
public virtual void TestNoBit()