mock

package
v0.0.0-...-a0efdce Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 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 Broker

type Broker struct {
	mock.Mock
}

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

func NewBroker

func NewBroker() *Broker

NewBroker provides a mock instance of a Broker

func (*Broker) Send

func (_m *Broker) Send(_a0 []budget.Transaction) error

Send is the method for sending a message to the broker

type Downloader

type Downloader struct {
	mock.Mock
}

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

func NewDownloader

func NewDownloader(content string) *Downloader

NewDownloader provides a mock instance of a Downloader

func (*Downloader) GetObject

func (_m *Downloader) GetObject(ctx context.Context, input *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)

type Parser

type Parser struct {
	mock.Mock
}

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

func NewParser

func NewParser() *Parser

NewParser provides a mock instance of a Parser

func (*Parser) ParseTransactions

func (_m *Parser) ParseTransactions(_a0 io.Reader) ([]budget.Transaction, error)

ParseTransactions parses an array of Transaction from a reader

type SQS

type SQS struct {
	iface.SQSSendMessageAPI
	mock.Mock
}

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

func NewSQSClient

func NewSQSClient() *SQS

NewSQSClient provides a mock instance of a SQS client

func (*SQS) SendMessageBatch

func (_m *SQS) SendMessageBatch(ctx context.Context, params *sqs.SendMessageBatchInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageBatchOutput, error)

SendMessageBatch API operation for Amazon Simple Queue Service. Delivers a bunch of messages to the specified queue.

Jump to

Keyboard shortcuts

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