conformance

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package conformance is the one test suite every store adapter must pass, proving the SQLite, in-memory and Postgres adapters are interchangeable behind the store ports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAccessStore added in v2.2.0

func RunAccessStore(t *testing.T, newStore func(t *testing.T) store.AccessStore)

RunAccessStore exercises every store.AccessStore method against a freshly constructed adapter, including a sign-in racing an administrator's grant and two replicas enrolling one person at once.

func RunDocStore

func RunDocStore(t *testing.T, newStore func(t *testing.T) store.DocStore)

RunDocStore exercises every store.DocStore method against a freshly constructed adapter, including the races two replicas run into: creating the same manifest's document at once, appending to one document at once, and appending while it is compacted.

func RunManifestStore

func RunManifestStore(t *testing.T, newStore func(t *testing.T) store.ManifestStore)

RunManifestStore exercises every store.ManifestStore method against a freshly constructed adapter.

func RunOperationalStore

func RunOperationalStore(t *testing.T, newStore func(t *testing.T) store.OperationalStore)

RunOperationalStore exercises every store.OperationalStore method.

func RunVaultIndex

func RunVaultIndex(t *testing.T, newIndex func(t *testing.T) store.VaultIndex)

RunVaultIndex exercises every store.VaultIndex method against a freshly constructed adapter, on top of the full store.ManifestStore suite the index embeds. Journal() and Operational() need only be non-nil and usable on a fresh adapter: surviving a close and reopen is not asserted here, since an in-memory adapter (if one is ever written) may have neither to persist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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