eventstore

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptanceTest

func AcceptanceTest(t *testing.T, store eh.EventStore, ctx context.Context) []eh.Event

AcceptanceTest is the acceptance test that all implementations of EventStore should pass. It should manually be called from a test case in each implementation:

func TestEventStore(t *testing.T) {
    store := NewEventStore()
    eventstore.AcceptanceTest(t, store, context.Background())
}

func Benchmark

func Benchmark(b *testing.B, store eh.EventStore)

func MaintenanceAcceptanceTest

func MaintenanceAcceptanceTest(t *testing.T, store eh.EventStore, storeMaintenance eh.EventStoreMaintenance, ctx context.Context)

MaintenanceAcceptanceTest is the acceptance test that all implementations of EventStoreMaintenance should pass. It should manually be called from a test case in each implementation:

func TestEventStore(t *testing.T) {
    store := NewEventStore()
    eventstore.AcceptanceTest(t, store, context.Background())
}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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