test

package
v0.0.0-...-1b98a9a Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeClose

func MaybeClose(t *testing.T, db store.Store)

MaybeClose a Store if it implements io.Closer

func PerformSinking

func PerformSinking(t *testing.T, open store.Opener, o ...option.Option)

PerformSinking makes sure that Sinkers registered via SinkTo are invoked at the right times

func PerformTestBadBefore

func PerformTestBadBefore(t *testing.T, open store.Opener, o ...option.Option)

PerformTestBadBefore makes sure that calls to a Store's Before method properly handle Versions that are higher than what is currently persisted

func PerformTestBefore

func PerformTestBefore(t *testing.T, open store.Opener, o ...option.Option)

PerformTestBefore uses the Before method to get events up to a certain version and then verifies that a call to Rest retrieves the remainder

func PerformTestPutNothing

func PerformTestPutNothing(
	t *testing.T, open store.Opener, o ...option.Option,
)

PerformTestPutNothing makes sure that a Store interface properly deals with putting of empty Message Lists

func PerformTestStore

func PerformTestStore(t *testing.T, open store.Opener, o ...option.Option)

PerformTestStore performs basic exercising of a Store interface

func PerformTestVersionInconsistency

func PerformTestVersionInconsistency(
	t *testing.T, open store.Opener, o ...option.Option,
)

PerformTestVersionInconsistency makes sure that a Store interface properly handles Version consistency checking

Types

This section is empty.

Jump to

Keyboard shortcuts

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