eventstore

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptanceTest

func AcceptanceTest(t *testing.T, ctx context.Context, store eh.EventStore) []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) {
    ctx := context.Background() // Or other when testing namespaces.
    store := NewEventStore()
    eventstore.AcceptanceTest(t, ctx, store)
}

func MaintainerAcceptanceTest

func MaintainerAcceptanceTest(t *testing.T, ctx context.Context, store eh.EventStoreMaintainer)

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

func TestEventStore(t *testing.T) {
    ctx := context.Background() // Or other when testing namespaces.
    store := NewEventStore()
    eventstore.AcceptanceTest(t, ctx, store)
}

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