test

package
v0.0.0-...-6ed1490 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT 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 eventstore.EventStore)

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 NewMockEventHandler

func NewMockEventHandler() *mockEventHandler

Types

This section is empty.

Jump to

Keyboard shortcuts

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