mocks

package
v0.0.0-...-b433dbc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapacityClient

type CapacityClient struct {
	mock.Mock
}

CapacityClient is an autogenerated mock type for the CapacityClient type

func NewCapacityClient

func NewCapacityClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CapacityClient

NewCapacityClient creates a new instance of CapacityClient. 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 (*CapacityClient) CapacityMetrics

func (_m *CapacityClient) CapacityMetrics() map[string]capacity.BotConfig

CapacityMetrics provides a mock function with given fields:

func (*CapacityClient) QueryAll

func (_m *CapacityClient) QueryAll(ctx context.Context) error

QueryAll provides a mock function with given fields: ctx

func (*CapacityClient) StartLoading

func (_m *CapacityClient) StartLoading(ctx context.Context, interval time.Duration)

StartLoading provides a mock function with given fields: ctx, interval

type IncrementalCache

type IncrementalCache struct {
	mock.Mock
}

IncrementalCache is an autogenerated mock type for the IncrementalCache type

func NewIncrementalCache

func NewIncrementalCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *IncrementalCache

NewIncrementalCache creates a new instance of IncrementalCache. 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 (*IncrementalCache) Get

func (_m *IncrementalCache) Get(repo string, since time.Time, maxCommits int) (*incremental.Update, error)

Get provides a mock function with given fields: repo, since, maxCommits

func (*IncrementalCache) GetAll

func (_m *IncrementalCache) GetAll(repo string, maxCommits int) (*incremental.Update, error)

GetAll provides a mock function with given fields: repo, maxCommits

func (*IncrementalCache) GetRange

func (_m *IncrementalCache) GetRange(repo string, from time.Time, to time.Time, maxCommits int) (*incremental.Update, error)

GetRange provides a mock function with given fields: repo, from, to, maxCommits

func (*IncrementalCache) Update

func (_m *IncrementalCache) Update(ctx context.Context, reset bool) error

Update provides a mock function with given fields: ctx, reset

func (*IncrementalCache) UpdateLoop

func (_m *IncrementalCache) UpdateLoop(ctx context.Context, frequency time.Duration)

UpdateLoop provides a mock function with given fields: ctx, frequency

Jump to

Keyboard shortcuts

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