Help us shape the future of Go! Take the 2026 Go Developer Survey

memconformance

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package memconformance provides a shared conformance test suite for the tool.MemoryStore interface. Adapters (the flock-file reference store, remote drivers, ...) call Run with a factory that constructs a fresh store, and the suite exercises only the tool.MemoryStore interface.

Importing "testing" in a non-_test.go file is intentional here: this is a test-helper package whose sole purpose is to be imported by adapter tests, the conventional Go pattern for shared conformance suites (cf. testing/fstest).

The suite pins the CONTRACT, not the implementation: durability across reopen, file-locking semantics, and the exact ranking order of Search are adapter-internal and deliberately NOT asserted here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, newStore func(t *testing.T) tool.MemoryStore)

Run executes the shared MemoryStore conformance table against the store produced by newStore. newStore must return a fresh, isolated store each call.

func RunLifecycle

func RunLifecycle(t *testing.T, newStore func(t *testing.T) (tool.MemoryStore, tool.MemoryLifecycleStore))

RunLifecycle executes the shared MemoryLifecycleStore conformance suite. The factory must return a fresh store implementing both the legacy and lifecycle contracts over the same records.

Types

This section is empty.

Jump to

Keyboard shortcuts

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