integration

package
v0.0.0-...-6ebe9bd Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDatabase

func ClearDatabase(config postgres.Config, t *testing.T)

This function should be called at the beginning of every test, in order to truncate tables and enable the test to start from an empty database.

func OpenDB

func OpenDB(config postgres.Config, t *testing.T) (*sql.DB, func())

func SeedDatabase

func SeedDatabase(config postgres.Config, t *testing.T, sqlSeed ...string)

Types

type SMTPServer

type SMTPServer struct {
	// contains filtered or unexported fields
}

func NewSMTPServer

func NewSMTPServer(cfg mail.Config) *SMTPServer

func (*SMTPServer) Run

func (s *SMTPServer) Run() (func(), error)

func (*SMTPServer) SetHandler

func (s *SMTPServer) SetHandler(handler smtpd.Handler)

Jump to

Keyboard shortcuts

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