mocks

package
v0.0.0-...-28926d1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

type Crawler struct {
	mock.Mock
}

Crawler is an autogenerated mock type for the Crawler type

func NewCrawler

func NewCrawler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Crawler

NewCrawler creates a new instance of Crawler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Crawler) Start

func (_m *Crawler) Start(number *models.TrackingNumber) (*models.Crawler, error)

Start provides a mock function with given fields: number

type Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Publisher) Publish

func (_m *Publisher) Publish(ctx context.Context, topic string, message []byte) error

Publish provides a mock function with given fields: ctx, topic, message

type TrackResultRepo

type TrackResultRepo struct {
	mock.Mock
}

TrackResultRepo is an autogenerated mock type for the TrackResultRepo type

func NewTrackResultRepo

func NewTrackResultRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *TrackResultRepo

NewTrackResultRepo creates a new instance of TrackResultRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TrackResultRepo) Get

func (_m *TrackResultRepo) Get(ctx context.Context, requestID string) ([]*models.Crawler, error)

Get provides a mock function with given fields: ctx, requestID

func (*TrackResultRepo) Set

func (_m *TrackResultRepo) Set(ctx context.Context, track *models.TrackingNumber, crawler *models.Crawler) error

Set provides a mock function with given fields: ctx, track, crawler

Jump to

Keyboard shortcuts

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