storetest

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package storetest is the conformance suite every Sentinel store backend runs. One set of assertions, four backends: a behaviour that differs between backends shows up here as a failure on the odd one out, not as a dashboard that works on sqlite and lies on mongo.

Memory and sqlite run it under a plain `go test ./...`. Postgres and mongo run it under `go test -tags integration ./store/...`, against testcontainers, or against SENTINEL_TEST_DSN / SENTINEL_TEST_MONGO_URI when those are set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, newStore Factory)

Run executes every conformance check against the backend newStore builds.

Types

type Factory

type Factory func(t *testing.T) store.Store

Factory returns a fresh, migrated, empty store for one subtest.

Jump to

Keyboard shortcuts

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