tests

package
v0.0.0-...-c5dd3fb Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMock

type DBMock struct {
	mock.Mock
}

DBMock is a mock implementation of the DB interface.

func (*DBMock) Exec

func (m *DBMock) Exec(ctx context.Context, query string, params ...interface{}) (pgconn.CommandTag, error)

Exec implements the DB interface.

func (*DBMock) QueryRow

func (m *DBMock) QueryRow(ctx context.Context, query string, params ...interface{}) pgx.Row

QueryRow implements the DB interface.

type EmailSenderMock

type EmailSenderMock struct {
	mock.Mock
}

EmailSenderMock is a mock implementation of the EmailSender interface.

func (*EmailSenderMock) SendEmail

func (m *EmailSenderMock) SendEmail(data *email.Data) error

SendEmail implements the EmailSender interface.

type RowMock

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

RowMock is a mock implementation of the pgx.Row interface.

func (*RowMock) Scan

func (m *RowMock) Scan(dest ...interface{}) error

Scan implements pgx.Row interface.

Jump to

Keyboard shortcuts

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