mocks

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	mock.Mock
}

Fetcher is an autogenerated mock type for the Fetcher type

func NewFetcher

func NewFetcher(t mockConstructorTestingTNewFetcher) *Fetcher

NewFetcher creates a new instance of Fetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Fetcher) DataTypes

func (_m *Fetcher) DataTypes() map[int]string

DataTypes provides a mock function with given fields:

func (*Fetcher) Fetch

func (_m *Fetcher) Fetch(ctx context.Context, dataType int) ([]apiclient.APIResponse, error)

Fetch provides a mock function with given fields: ctx, dataType

func (*Fetcher) GetLastUpdated added in v1.12.1

func (_m *Fetcher) GetLastUpdated(ctx context.Context, dataType int) (time.Time, error)

GetLastUpdates provides a mock function with given fields: ctx, dataType

Jump to

Keyboard shortcuts

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