BaseStoredFieldsFormatTestCase

Base class aiming at testing stored fields formats. To test a new format, all you need is to register a new Codec which uses it and extend this class and override .getCodec.

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
open fun testBigDocuments()
Link copied to clipboard
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
Link copied to clipboard
open fun testEmptyDocs()
Link copied to clipboard
open fun testIndexedBit()
Link copied to clipboard
open fun testLineFileDocs()

Test realistic data, which typically compresses better than random data.

Link copied to clipboard
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

mix up field numbers, merge, and check that data is correct

Link copied to clipboard

Calls close multiple times on closeable codec apis

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

Tests exception handling on write and openInput/createOutput

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