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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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