conformance

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package conformance is the one test suite that both the SQLite and the in-memory store adapters must pass, proving they are interchangeable behind the store.ManifestStore and store.OperationalStore ports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 RunOpLog

func RunOpLog(t *testing.T, newLog func(t *testing.T) store.OpLog)

RunOpLog exercises every store.OpLog method against a freshly constructed adapter: dense sequence numbers per manifest, reads by position, and compaction that keeps what came after.

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