mirror of https://github.com/apache/lucene.git
also test extremes (1, MAX_VALUE) for DirectPF's configs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f55c8d1247
commit
91150e2477
|
@ -41,6 +41,7 @@ import org.apache.lucene.codecs.mocksep.MockSepPostingsFormat;
|
|||
import org.apache.lucene.codecs.nestedpulsing.NestedPulsingPostingsFormat;
|
||||
import org.apache.lucene.codecs.pulsing.Pulsing40PostingsFormat;
|
||||
import org.apache.lucene.codecs.simpletext.SimpleTextPostingsFormat;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util._TestUtil;
|
||||
|
||||
/**
|
||||
|
@ -92,7 +93,8 @@ public class RandomCodec extends Lucene40Codec {
|
|||
|
||||
add(avoidCodecs,
|
||||
new Lucene40PostingsFormat(minItemsPerBlock, maxItemsPerBlock),
|
||||
new DirectPostingsFormat(minItemsPerBlock, lowFreqCutoff),
|
||||
new DirectPostingsFormat(LuceneTestCase.rarely(random) ? 1 : (LuceneTestCase.rarely(random) ? Integer.MAX_VALUE : maxItemsPerBlock),
|
||||
LuceneTestCase.rarely(random) ? 1 : (LuceneTestCase.rarely(random) ? Integer.MAX_VALUE : lowFreqCutoff)),
|
||||
new Pulsing40PostingsFormat(1 + random.nextInt(20), minItemsPerBlock, maxItemsPerBlock),
|
||||
// add pulsing again with (usually) different parameters
|
||||
new Pulsing40PostingsFormat(1 + random.nextInt(20), minItemsPerBlock, maxItemsPerBlock),
|
||||
|
|
Loading…
Reference in New Issue