storetest

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package storetest is the backend-agnostic conformance suite for storage.Store implementations. storage/sqlite runs it unconditionally against a file-based temp database; storage/postgres runs it when SOVREN_TEST_POSTGRES_DSN is set. It proves every schema UNIQUE constraint fires through the repo layer with the right typed error, that illegal state transitions are rejected, that WithTx is atomic, and that concurrent sequence reservation never hands out a slot twice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSuite

func RunSuite(t *testing.T, open OpenFunc)

RunSuite runs the full conformance suite.

Types

type OpenFunc

type OpenFunc func(t *testing.T) storage.Store

OpenFunc returns a fresh, empty, migrated Store for one test.

Jump to

Keyboard shortcuts

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