BaseNormsFormatTestCase

Abstract class to do basic tests for a norms format. NOTE: This test focuses on the norms impl, nothing else. The stretch goal is for this test to be so thorough in testing a new NormsFormat that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given NormsFormat 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
open fun testAllZeros()
Link copied to clipboard
open fun testByteRange()
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
Link copied to clipboard
open fun testFewValues()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testLongRange()
Link copied to clipboard
open override fun testMergeStability()

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

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

Calls close multiple times on closeable codec apis

Link copied to clipboard
open fun testNCommon()
Link copied to clipboard
open fun testNCommonBig()

a more thorough n-common that tests all low bpv

Link copied to clipboard
open fun testOutliers()
Link copied to clipboard
open fun testOutliers2()
Link copied to clipboard

Tests exception handling on write and openInput/createOutput

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

a more thorough n-common that tests all low bpv and sparse docs

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun testThreads(): TestResult
Link copied to clipboard
open fun testUndeadNorms()