mocks

package
v0.0.0-...-86f9a86 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider struct {
	mock.Mock
}

ConfigProvider is an autogenerated mock type for the ConfigProvider type

func NewConfigProvider

func NewConfigProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigProvider

NewConfigProvider creates a new instance of ConfigProvider. 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 (*ConfigProvider) GetAlertConfig

func (_m *ConfigProvider) GetAlertConfig(alertId int64) (*alerts.Alert, error)

GetAlertConfig provides a mock function with given fields: alertId

func (*ConfigProvider) GetAllAlertConfigs

func (_m *ConfigProvider) GetAllAlertConfigs(ctx context.Context, includeDeleted bool) ([]*alerts.Alert, error)

GetAllAlertConfigs provides a mock function with given fields: ctx, includeDeleted

func (*ConfigProvider) Refresh

func (_m *ConfigProvider) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) Delete

func (_m *Store) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*Store) List

func (_m *Store) List(ctx context.Context, includeDeleted bool) ([]*alerts.Alert, error)

List provides a mock function with given fields: ctx, includeDeleted

func (*Store) ReplaceAll

func (_m *Store) ReplaceAll(ctx context.Context, req []*alerts.SaveRequest) error

ReplaceAll provides a mock function with given fields: ctx, req

func (*Store) Save

func (_m *Store) Save(ctx context.Context, req *alerts.SaveRequest) error

Save provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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