BaseTermVectorsFormatTestCase
Base class aiming at testing term vectors 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.
Types
Link copied to clipboard
open class RandomTokenStream(len: Int, sampleTerms: Array<String>, sampleTermBytes: Array<BytesRef>) : TokenStream
Produces a random TokenStream based off of provided terms.
Functions
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
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
Link copied to clipboard
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
Tests exception handling on write and openInput/createOutput
Link copied to clipboard