Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BasePostingsFormatTestCase

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Inheritance
    object
    LuceneTestCase
    BaseIndexFileFormatTestCase
    BasePostingsFormatTestCase
    Inherited Members
    BaseIndexFileFormatTestCase.GetCodec()
    BaseIndexFileFormatTestCase.SetUp()
    BaseIndexFileFormatTestCase.TearDown()
    BaseIndexFileFormatTestCase.ExcludedExtensionsFromByteCounts
    BaseIndexFileFormatTestCase.TestMergeStability()
    LuceneTestCase.TEST_VERSION_CURRENT
    LuceneTestCase.Verbose
    LuceneTestCase.UseInfoStream
    LuceneTestCase.RandomMultiplier
    LuceneTestCase.DEFAULT_LINE_DOCS_FILE
    LuceneTestCase.JENKINS_LARGE_LINE_DOCS_FILE
    LuceneTestCase.TestCodec
    LuceneTestCase.TestPostingsFormat
    LuceneTestCase.TestDocValuesFormat
    LuceneTestCase.TestDirectory
    LuceneTestCase.TestLineDocsFile
    LuceneTestCase.TestNightly
    LuceneTestCase.TestWeekly
    LuceneTestCase.TestAwaitsFix
    LuceneTestCase.TestSlow
    LuceneTestCase.LeaveTemporary
    LuceneTestCase.DoesntSupportOffsets
    LuceneTestCase.OldFormatImpersonationIsActive
    LuceneTestCase.SuiteFailureMarker
    LuceneTestCase.Random
    LuceneTestCase.TestType
    LuceneTestCase.TestName
    LuceneTestCase.GetOnlySegmentReader(DirectoryReader)
    LuceneTestCase.AssertSaneFieldCaches(string)
    LuceneTestCase.AtLeast(Random, int)
    LuceneTestCase.AtLeast(int)
    LuceneTestCase.Rarely(Random)
    LuceneTestCase.Rarely()
    LuceneTestCase.Usually(Random)
    LuceneTestCase.Usually()
    LuceneTestCase.AssumeTrue(string, bool)
    LuceneTestCase.AssumeFalse(string, bool)
    LuceneTestCase.AssumeNoException(string, Exception)
    LuceneTestCase.AsSet(params object[])
    LuceneTestCase.DumpEnumerator(string, IEnumerator, TextWriter)
    LuceneTestCase.DumpArray(string, object[], TextWriter)
    LuceneTestCase.NewIndexWriterConfig(LuceneVersion, Analyzer)
    LuceneTestCase.NewIndexWriterConfig(Random, LuceneVersion, Analyzer)
    LuceneTestCase.NewMergePolicy(Random)
    LuceneTestCase.NewMergePolicy()
    LuceneTestCase.NewLogMergePolicy()
    LuceneTestCase.NewTieredMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy()
    LuceneTestCase.NewAlcoholicMergePolicy(Random, TimeZoneInfo)
    LuceneTestCase.NewLogMergePolicy(Random)
    LuceneTestCase.NewTieredMergePolicy(Random)
    LuceneTestCase.NewLogMergePolicy(bool)
    LuceneTestCase.NewLogMergePolicy(bool, int)
    LuceneTestCase.NewLogMergePolicy(int)
    LuceneTestCase.NewDirectory()
    LuceneTestCase.NewDirectory(Random)
    LuceneTestCase.NewMockDirectory()
    LuceneTestCase.NewMockDirectory(Random)
    LuceneTestCase.NewMockFSDirectory(DirectoryInfo)
    LuceneTestCase.NewDirectory(Directory)
    LuceneTestCase.NewFSDirectory(DirectoryInfo)
    LuceneTestCase.NewFSDirectory(DirectoryInfo, LockFactory)
    LuceneTestCase.NewDirectory(Random, Directory)
    LuceneTestCase.NewStringField(string, string, Field.Store)
    LuceneTestCase.NewTextField(string, string, Field.Store)
    LuceneTestCase.NewStringField(Random, string, string, Field.Store)
    LuceneTestCase.NewTextField(Random, string, string, Field.Store)
    LuceneTestCase.NewField(string, string, FieldType)
    LuceneTestCase.NewField(Random, string, string, FieldType)
    LuceneTestCase.RandomCulture(Random)
    LuceneTestCase.RandomTimeZone(Random)
    LuceneTestCase.CultureForName(string)
    LuceneTestCase.DefaultCodecSupportsDocValues
    LuceneTestCase.MaybeWrapReader(IndexReader)
    LuceneTestCase.NewIOContext(Random)
    LuceneTestCase.NewIOContext(Random, IOContext)
    LuceneTestCase.NewSearcher(IndexReader)
    LuceneTestCase.NewSearcher(IndexReader, bool)
    LuceneTestCase.NewSearcher(IndexReader, bool, bool)
    LuceneTestCase.GetDataFile(string)
    LuceneTestCase.DefaultCodecSupportsMissingDocValues
    LuceneTestCase.DefaultCodecSupportsSortedSet
    LuceneTestCase.DefaultCodecSupportsDocsWithField
    LuceneTestCase.DefaultCodecSupportsFieldUpdates
    LuceneTestCase.AssertReaderEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertReaderStatisticsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldsEquals(string, IndexReader, Fields, Fields, bool)
    LuceneTestCase.AssertFieldStatisticsEquals(string, Fields, Fields)
    LuceneTestCase.AssertTermsEquals(string, IndexReader, Terms, Terms, bool)
    LuceneTestCase.AssertTermsStatisticsEquals(string, Terms, Terms)
    LuceneTestCase.AssertTermsEnumEquals(string, IndexReader, TermsEnum, TermsEnum, bool)
    LuceneTestCase.AssertDocsAndPositionsEnumEquals(string, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertDocsEnumEquals(string, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertDocsSkippingEquals(string, IndexReader, int, DocsEnum, DocsEnum, bool)
    LuceneTestCase.AssertPositionsSkippingEquals(string, IndexReader, int, DocsAndPositionsEnum, DocsAndPositionsEnum)
    LuceneTestCase.AssertTermStatsEquals(string, TermsEnum, TermsEnum)
    LuceneTestCase.AssertNormsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertStoredFieldEquals(string, IIndexableField, IIndexableField)
    LuceneTestCase.AssertTermVectorsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertDocValuesEquals(string, int, NumericDocValues, NumericDocValues)
    LuceneTestCase.AssertDeletedDocsEquals(string, IndexReader, IndexReader)
    LuceneTestCase.AssertFieldInfosEquals(string, IndexReader, IndexReader)
    LuceneTestCase.SlowFileExists(Directory, string)
    LuceneTestCase.CreateTempDir()
    LuceneTestCase.CreateTempDir(string)
    LuceneTestCase.CreateTempFile(string, string)
    LuceneTestCase.CreateTempFile()
    LuceneTestCase.GetFullMethodName(string)
    LuceneTestCase.RandomGaussian()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public abstract class BasePostingsFormatTestCase : BaseIndexFileFormatTestCase

    Methods

    AddRandomFields(Document)

    Add random fields to the provided document.

    Declaration
    protected override void AddRandomFields(Document doc)
    Parameters
    Type Name Description
    Document doc
    Overrides
    BaseIndexFileFormatTestCase.AddRandomFields(Document)

    AfterClass()

    Tears down random defaults and cleans up temporary files.

    If you override this method, be sure to call base.AfterClass() AFTER tearing down your test fixture.
    Declaration
    [OneTimeTearDown]
    public override void AfterClass()
    Overrides
    LuceneTestCase.AfterClass()

    BeforeClass()

    Sets up dependency injection of codec factories for running the test class, and also picks random defaults for culture, time zone, similarity, and default codec.

    If you override this method, be sure to call base.BeforeClass() BEFORE setting up your test fixture.
    Declaration
    [OneTimeSetUp]
    public override void BeforeClass()
    Overrides
    LuceneTestCase.BeforeClass()

    TestDocsAndFreqs()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsAndFreqs()

    TestDocsAndFreqsAndPositions()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsAndFreqsAndPositions()

    TestDocsAndFreqsAndPositionsAndOffsets()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsAndFreqsAndPositionsAndOffsets()

    TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsAndFreqsAndPositionsAndOffsetsAndPayloads()

    TestDocsAndFreqsAndPositionsAndPayloads()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsAndFreqsAndPositionsAndPayloads()

    TestDocsOnly()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestDocsOnly()

    TestRandom()

    Abstract class to do basic tests for a Lucene.Net.Codecs.PostingsFormat. NOTE: this test focuses on the postings (docs/freqs/positions/payloads/offsets) impl, not the terms dict. The [stretch] goal is for this test to be so thorough in testing a new Lucene.Net.Codecs.PostingsFormat that if this test passes, then all Lucene/Solr tests should also pass. Ie, if there is some bug in a given Lucene.Net.Codecs.PostingsFormat that this test fails to catch then this test needs to be improved!

    Declaration
    [Test]
    public virtual void TestRandom()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.