test

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bob = &maut.User{ID: "bob", Blocked: false, Roles: []string{"admin"}}
)

Functions

func Bus

func Clear

func Clear(ctx context.Context, client driver.Client, name string)

func Config

func Config(_ context.Context) (*catalyst.Config, error)

func Context

func Context() context.Context

func Index

func Index(t *testing.T) (*index.Index, func(), error)

func Server

func Server(t *testing.T) (context.Context, *catalyst.Config, *bus.Bus, *index.Index, *storage.Storage, *database.Database, *service.Service, chi.Router, func(), error)

func SetupTestData

func SetupTestData(ctx context.Context, db *database.Database) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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