storetest

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package storetest is the conformance suite every store.Store implementation must pass. The mem store runs it always; store/dynamo runs it against a local DynamoDB endpoint when configured.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run exercises s against the Store contract. The factory must yield a store whose keyspace is empty or test-unique.

Types

type Options

type Options struct {
	// StrictTTL asserts that expired records are immediately invisible.
	// Native-TTL stores (DynamoDB) delete lazily and must leave this false.
	StrictTTL bool
}

Options tunes the suite per implementation.

Jump to

Keyboard shortcuts

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