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

storetest

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package storetest is the conformance suite for agentmemory.Store implementations. Every store in this repository runs it; a store elsewhere can too.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, opts Options)

Run exercises a store through the whole interface.

Types

type Options

type Options struct {
	// New returns a fresh, empty store. Its MaxEntryBytes must be at
	// least 64, so the suite can write entries it can reason about.
	New func(t *testing.T) agentmemory.Store
	// Reopen returns a second handle on the same underlying storage as
	// s, for stores that persist. It is nil for a store that does not.
	Reopen func(t *testing.T, s agentmemory.Store) agentmemory.Store
}

Options configure a run.

Jump to

Keyboard shortcuts

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