searchtest

package
v0.2.64 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MPL-2.0 Imports: 9 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 searchtest holds the backend-agnostic conformance suite for search.Store implementations. The bundled Bleve backend runs it; a backend that reaches the same engine some other way reuses it unchanged, which is what keeps "search on a laptop" and "search hosted" behaviourally identical behind the interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConformance

func RunConformance(t *testing.T, newStore func(t *testing.T) search.Store, opts ...Options)

RunConformance exercises the full search.Store contract against a fresh store produced by newStore. newStore is called once per RunConformance.

Types

type Options

type Options struct {
	// Settle, when set, is called after every write and must return once that
	// write is visible to a Query. A backend that applies writes
	// asynchronously supplies it; a synchronous backend leaves it nil.
	Settle func(t *testing.T, s search.Store, tenant, collection string)
}

Options adapts the suite to a backend.

Jump to

Keyboard shortcuts

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