mock

package
v0.0.0-...-b4f7c80 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Anything is used in Diff and Assert when the argument being tested
	// shouldn't be taken into consideration.
	Anything = "mock.Anything"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedSecretsManager

type MockedSecretsManager struct {
	iface.SecretsManager
	mock.Mock
}

MockedSecretsManager is an implementation of the SecretsManager interface with a mock, use for testing not for production

func (*MockedSecretsManager) GetSecretValue

type Reader

type Reader struct {
	mock.Mock
}

Reader is an implementation of the Reader interface with a mock, use for testing not for production

func NewReader

func NewReader() *Reader

NewReader provides a mock instance of a Reader

func (*Reader) Read

func (_m *Reader) Read(_a0 events.SQSMessage) (budget.Transaction, error)

type Writer

type Writer struct {
	mock.Mock
}

Writer is an implementation of the Writer interface with a mock, use for testing not for production

func NewWriter

func NewWriter() *Writer

NewWriter provides a mock instance of a Writer

func (*Writer) Write

func (_m *Writer) Write(_a0 budget.Transaction, _a1 string) error

Jump to

Keyboard shortcuts

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