BaseSegmentInfoFormatTestCase

Abstract class to do basic tests for si format. NOTE: This test focuses on the si impl, nothing else. The stretch goal is for this test to be so thorough in testing a new si format that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given si Format that this test fails to catch then this test needs to be improved!

Constructors

Link copied to clipboard
constructor()

Functions

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

Tests SI writer adds itself to files...

Link copied to clipboard
open fun testAttributes()

Test attributes map

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 testDiagnostics()

Test diagnostics map

Link copied to clipboard

Test segment infos read that hits exception on close make sure we get our exception back, no file handle leaks, etc.

Link copied to clipboard

Test segment infos write that hits exception on close. make sure we get our exception back, no file handle leaks, etc.

Link copied to clipboard

Test segment infos write that hits exception immediately on open. make sure we get our exception back, no file handle leaks, etc.

Link copied to clipboard

Test segment infos read that hits exception immediately on open. make sure we get our exception back, no file handle leaks, etc.

Link copied to clipboard
open fun testFiles()

Test files map

Link copied to clipboard
open fun testHasBlocks()
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

Calls close multiple times on closeable codec apis

Link copied to clipboard
open fun testRandom()

Sets some otherwise hard-to-test properties: random segment names, ID values, document count, etc and round-trips

Link copied to clipboard

Tests exception handling on write and openInput/createOutput

Link copied to clipboard
open fun testSort()

Test sort

Link copied to clipboard
open fun testUniqueID()

Test unique ID

Link copied to clipboard
open fun testVersions()

Test versions