Help us shape the future of Go! Take the 2026 Go Developer Survey

storetest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package storetest defines reusable conformance tests for lifecycle stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFullTextRecallConformance

func RunFullTextRecallConformance(t *testing.T, newStore func(*testing.T) FullTextStore)

RunFullTextRecallConformance checks that full-text recall matches any query term, handles Chinese text, drops matches weaker than half the best one, and ranks by matched terms the same way in every store.

func RunLifecycleConformance

func RunLifecycleConformance(t *testing.T, newStore func(*testing.T) memorykit.LifecycleStore)

Types

type FullTextStore

type FullTextStore interface {
	memorykit.LifecycleStore
	memorykit.RecallStore
}

FullTextStore is a store whose full-text recall channel is under test.

Jump to

Keyboard shortcuts

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