Class BaseDocIdSetTestCase<T>
Base test class for Lucene.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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, BitSet, T)
Assert that the content of the Lucene.
Declaration
public virtual void AssertEquals(int numBits, BitSet ds1, T ds2)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
J2N. |
ds1 | |
T | ds2 |
CopyOf(BitSet, Int32)
Create a copy of the given J2N.length
bits.
Declaration
public abstract T CopyOf(BitSet bs, int length)
Parameters
Type | Name | Description |
---|---|---|
J2N. |
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 BitSet RandomSet(int numBits, int numBitsSet)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
System. |
numBitsSet |
Returns
Type | Description |
---|---|
J2N. |
RandomSet(Int32, Single)
Same as Random
Declaration
protected static BitSet RandomSet(int numBits, float percentSet)
Parameters
Type | Name | Description |
---|---|---|
System. |
numBits | |
System. |
percentSet |
Returns
Type | Description |
---|---|
J2N. |
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.
Declaration
[Test]
public virtual void TestAgainstBitSet()
TestNoBit()
Test length=0.
Declaration
[Test]
public virtual void TestNoBit()