test

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPathDiscovery = errors.New("could not identify test objects path")
)

Functions

func AssertMatchesGoldenFile added in v0.1.15

func AssertMatchesGoldenFile(t *testing.T, got, name, extension string, update *bool)

func BannerBuilder added in v0.1.6

func BannerBuilder(options ...BannerBuilderOption) *banner.Builder

func DB added in v0.1.6

func DB(options ...DBOption) *letterboxfakes.FakeDatastore

func Domain added in v0.1.11

func Domain() *letterbox.Domain

func Fixture added in v0.1.7

func Fixture(path string, t *testing.T) string

func GetTestKey

func GetTestKey() (*letterbox.UserKey, error)

func GetTestMessage

func GetTestMessage(name string) io.Reader

func Logger added in v0.1.6

func Logger() *loggerfakes.FakeLogger

func Mailbox added in v0.1.6

func Mailbox(options ...MailboxOption) *letterbox.Mailbox

func MailboxService added in v0.1.14

func MailboxService(db letterbox.Datastore) *letterbox.MailboxService

Types

type BannerBuilderOption added in v0.1.6

type BannerBuilderOption func(*banner.Config)

func WithHTMLTemplate added in v0.1.15

func WithHTMLTemplate(template string) BannerBuilderOption

func WithURL added in v0.1.6

func WithURL(url string) BannerBuilderOption

type DBOption added in v0.1.6

type DBOption func(db *letterboxfakes.FakeDatastore)

type MailboxOption added in v0.1.6

type MailboxOption func(*letterbox.Mailbox)

func WithDomainAllowlist added in v0.1.6

func WithDomainAllowlist(domains ...string) MailboxOption

func WithMailboxName added in v0.1.11

func WithMailboxName(name string) MailboxOption

Jump to

Keyboard shortcuts

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