testutils

package
v0.0.0-...-6991b5a Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package testutils contains some helpers for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer(t testing.TB, logger eventstore.Logger) (*httptest.Server, string, func())

Types

type Eventstore

type Eventstore interface {
	io.Writer
	Retrieve() ([]json.RawMessage, error)
}

func CreateEventstore

func CreateEventstore(t testing.TB, logger eventstore.Logger) (Eventstore, string, func())

Jump to

Keyboard shortcuts

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