storetest

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Overview

Package storetest is the contract every session Store, SecretStorage and EventLog must meet. Run it from a store's own tests (the memory stores and session/postgres do), so a new store cannot ship without the same compare-and-swap, outcome, secret and event-order rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventLog

func EventLog(t *testing.T, newLog func(t *testing.T) session.EventLog)

EventLog runs the EventLog contract against a fresh log from newLog.

func Secrets

func Secrets(t *testing.T, newSecrets func(t *testing.T) session.SecretStorage)

Secrets runs the SecretStorage contract against a fresh storage from newSecrets.

func Store

func Store(t *testing.T, newStore func(t *testing.T) session.Store)

Store runs the Store contract against a fresh store from newStore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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