mockfetchers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 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 DaemonFetcher

type DaemonFetcher struct {
	mock.Mock
}

DaemonFetcher is an autogenerated mock type for the DaemonFetcher type

func NewDaemonFetcher

func NewDaemonFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *DaemonFetcher

NewDaemonFetcher creates a new instance of DaemonFetcher. 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 (*DaemonFetcher) Fetch

func (_m *DaemonFetcher) Fetch(isHardRefresh bool) error

Fetch provides a mock function with given fields: isHardRefresh

func (*DaemonFetcher) Notify

func (_m *DaemonFetcher) Notify(isHardRefresh bool) (chan bool, error)

Notify provides a mock function with given fields: isHardRefresh

func (*DaemonFetcher) Start

func (_m *DaemonFetcher) Start(_a0 context.Context)

Start provides a mock function with given fields: _a0

func (*DaemonFetcher) Stop

func (_m *DaemonFetcher) Stop()

Stop provides a mock function with given fields:

func (*DaemonFetcher) UIRefresh

func (_m *DaemonFetcher) UIRefresh() chan bool

UIRefresh provides a mock function with given fields:

type FetchFn

type FetchFn struct {
	mock.Mock
}

FetchFn is an autogenerated mock type for the FetchFn type

func NewFetchFn

func NewFetchFn(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchFn

NewFetchFn creates a new instance of FetchFn. 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 (*FetchFn) Execute

func (_m *FetchFn) Execute(sd fetchers.StatusDescriber, isHardRefresh bool) error

Execute provides a mock function with given fields: sd, isHardRefresh

type Progress

type Progress struct {
	mock.Mock
}

Progress is an autogenerated mock type for the Progress type

func NewProgress

func NewProgress(t interface {
	mock.TestingT
	Cleanup(func())
}) *Progress

NewProgress creates a new instance of Progress. 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 (*Progress) Execute

func (_m *Progress) Execute() int

Execute provides a mock function with given fields:

type StatusDescriber

type StatusDescriber struct {
	mock.Mock
}

StatusDescriber is an autogenerated mock type for the StatusDescriber type

func NewStatusDescriber

func NewStatusDescriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusDescriber

NewStatusDescriber creates a new instance of StatusDescriber. 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 (*StatusDescriber) Error

func (_m *StatusDescriber) Error(err error)

Error provides a mock function with given fields: err

func (*StatusDescriber) OnError

func (_m *StatusDescriber) OnError(_a0 func(error) error)

OnError provides a mock function with given fields: _a0

func (*StatusDescriber) OnSuccess

func (_m *StatusDescriber) OnSuccess(_a0 func() error)

OnSuccess provides a mock function with given fields: _a0

func (*StatusDescriber) OnSyncing

func (_m *StatusDescriber) OnSyncing(_a0 func() error)

OnSyncing provides a mock function with given fields: _a0

func (*StatusDescriber) Progress

func (_m *StatusDescriber) Progress() (int, int)

Progress provides a mock function with given fields:

func (*StatusDescriber) SetProgress

func (_m *StatusDescriber) SetProgress(current int, total int)

SetProgress provides a mock function with given fields: current, total

func (*StatusDescriber) Success

func (_m *StatusDescriber) Success()

Success provides a mock function with given fields:

func (*StatusDescriber) Syncing

func (_m *StatusDescriber) Syncing()

Syncing provides a mock function with given fields:

Jump to

Keyboard shortcuts

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