drivertest

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package drivertest provides test helpers that verify a Driver provides access to the expected stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests(
	t *testing.T,
	d Driver,
	journalStore journal.BinaryStore,
	kvStore kv.BinaryStore,
	setStore set.BinaryStore,
)

RunTests verifies that the driver's stores share the same data as the given reference stores by writing through the driver and reading through the reference stores.

Types

type Driver

type Driver interface {
	JournalStore() journal.BinaryStore
	KVStore() kv.BinaryStore
	SetStore() set.BinaryStore
}

Driver is the subset of [persistencekit.Driver] used by driver tests.

Jump to

Keyboard shortcuts

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