testcases

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testcases implements common helpers for testing inverted and lsm indices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDuration

func RunDuration(t *testing.T, data map[int]posting.List, store SimpleStore)

RunDuration executes duration related cases.

func RunServiceName

func RunServiceName(t *testing.T, store SimpleStore)

RunServiceName executes service name related cases.

func SetUp

func SetUp(t *assert.Assertions, store SimpleStore)

SetUp initializes a index repository.

func SetUpDuration

func SetUpDuration(t *assert.Assertions, store index.Writer) map[int]posting.List

SetUpDuration initializes data for testing duration related cases.

Types

type SimpleStore

type SimpleStore interface {
	index.FieldIterable
	index.Writer
	MatchTerms(field index.Field) (list posting.List, timestamps posting.List, err error)
}

SimpleStore is subset of index.Store for testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL