Documentation
¶
Index ¶
- func AcceptanceTest(t *testing.T, store eh.EventStore, ctx context.Context) []eh.Event
- func Benchmark(b *testing.B, store eh.EventStore)
- func MaintenanceAcceptanceTest(t *testing.T, store eh.EventStore, storeMaintenance eh.EventStoreMaintenance, ...)
- func SnapshotAcceptanceTest(t *testing.T, store eh.EventStore, ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptanceTest ¶
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 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())
}
func SnapshotAcceptanceTest ¶ added in v0.16.0
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.