integrationtest

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package integrationtest exposes a common integration test suite for Event Stores and Aggregate Repositories implementations.

Only people implementing an event.Store or aggregate.Repository implementation should use this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateRepository

func AggregateRepository(repository aggregate.Repository[uuid.UUID, *user.User]) func(t *testing.T)

AggregateRepository returns an executable testing suite running on the agfgregate.Repository value provided in input.

The aggregate.Repository value requested should comply with the given signature.

Package user of this module exposes a Protobuf-based serde, which can be useful to test serialization and deserialization of data to the target repository implementation.

func EventStore

func EventStore(eventStore event.Store) func(t *testing.T)

EventStore returns an executable testing suite running on the event.Store value provided in input.

Types

This section is empty.

Directories

Path Synopsis
Package user serves as a small domain example of how to model an Aggregate using go-eventually.
Package user serves as a small domain example of how to model an Aggregate using go-eventually.

Jump to

Keyboard shortcuts

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