eventstore

package
v0.14.9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 8 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 added in v0.13.0

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

func MaintenanceAcceptanceTest added in v0.13.0

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