Class BaseDocIdSetTestCase<T>
Base test class for
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
| Improve this Doc View SourceAssertEquals(Int32, BitArray, T)
Assert that the content of the
Declaration
public virtual void AssertEquals(int numBits, BitArray ds1, T ds2)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
Bit |
ds1 | |
T | ds2 |
CopyOf(BitArray, Int32)
Create a copy of the given length
bits.
Declaration
public abstract T CopyOf(BitArray bs, int length)
Parameters
Type | Name | Description |
---|---|---|
Bit |
bs | |
System. |
length |
Returns
Type | Description |
---|---|
T |
RandomSet(Int32, Int32)
Create a random set which has numBitsSet
of its numBits
bits set.
Declaration
protected static BitArray RandomSet(int numBits, int numBitsSet)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
System. |
numBitsSet |
Returns
Type | Description |
---|---|
Bit |
RandomSet(Int32, Single)
Same as Random
Declaration
protected static BitArray RandomSet(int numBits, float percentSet)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
System. |
percentSet |
Returns
Type | Description |
---|---|
Bit |
Test1Bit()
Test length=1.
Declaration
public virtual void Test1Bit()
Test2Bits()
Test length=2.
Declaration
public virtual void Test2Bits()
TestAgainstBitSet()
Compare the content of the set against a
Declaration
public virtual void TestAgainstBitSet()
TestNoBit()
Test length=0.
Declaration
public virtual void TestNoBit()