storetest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package storetest provides a published contract test suite for EventStore implementations. Any EventStore adapter must pass this suite.

Usage:

func TestMyStore(t *testing.T) {
    storetest.Run(t, func(t *testing.T) runtime.EventStore {
        return NewMyStore(t.TempDir())
    })
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, mk func(t *testing.T) runtime.EventStore)

Run executes the full EventStore contract suite against the store returned by mk. mk is called fresh for each sub-test to ensure test isolation.

func RunArtifact

func RunArtifact(t *testing.T, mk func(t *testing.T) runtime.ArtifactStore)

RunArtifact executes the ArtifactStore contract suite against the store returned by mk. mk is called fresh for each sub-test to ensure test isolation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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