BasePostingsFormatTestCase

Abstract class to do basic tests for a postings format. 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 PostingsFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given PostingsFormat that this test fails to catch then this test needs to be improved!

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setUp()
Link copied to clipboard
fun tearDown()
Link copied to clipboard
Link copied to clipboard

This test is the best effort at verifying that checkIntegrity doesn't miss any files. It tests that the combination of opening a reader and calling checkIntegrity on it reads all bytes of all files.

Link copied to clipboard
open fun testDisorder()
Link copied to clipboard
open fun testDocsAndFreqs()
Link copied to clipboard
Link copied to clipboard
open fun testDocsOnly()
Link copied to clipboard
Link copied to clipboard
open fun testGhosts()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testLevel2Ghosts()
Link copied to clipboard
open fun testLineFileDocs()

Test realistic data, which is often better at uncovering real bugs.

Link copied to clipboard

The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.

Link copied to clipboard
Link copied to clipboard

Calls close multiple times on closeable codec apis

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testRandom()
Link copied to clipboard

Tests exception handling on write and openInput/createOutput