mocks

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationLogRepository

type NotificationLogRepository struct {
	mock.Mock
}

NotificationLogRepository is an autogenerated mock type for the NotificationLogRepository type

func NewNotificationLogRepository

func NewNotificationLogRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationLogRepository

NewNotificationLogRepository creates a new instance of NotificationLogRepository. 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 (*NotificationLogRepository) BulkCreate

func (_m *NotificationLogRepository) BulkCreate(_a0 context.Context, _a1 []log.Notification) error

BulkCreate provides a mock function with given fields: _a0, _a1

func (*NotificationLogRepository) EXPECT

func (*NotificationLogRepository) ListAlertIDsBySilenceID

func (_m *NotificationLogRepository) ListAlertIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)

ListAlertIDsBySilenceID provides a mock function with given fields: _a0, _a1

func (*NotificationLogRepository) ListSubscriptionIDsBySilenceID

func (_m *NotificationLogRepository) ListSubscriptionIDsBySilenceID(_a0 context.Context, _a1 string) ([]int64, error)

ListSubscriptionIDsBySilenceID provides a mock function with given fields: _a0, _a1

type NotificationLogRepository_BulkCreate_Call

type NotificationLogRepository_BulkCreate_Call struct {
	*mock.Call
}

NotificationLogRepository_BulkCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkCreate'

func (*NotificationLogRepository_BulkCreate_Call) Return

func (*NotificationLogRepository_BulkCreate_Call) Run

func (*NotificationLogRepository_BulkCreate_Call) RunAndReturn added in v0.6.1

type NotificationLogRepository_Expecter

type NotificationLogRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*NotificationLogRepository_Expecter) BulkCreate

func (_e *NotificationLogRepository_Expecter) BulkCreate(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_BulkCreate_Call

BulkCreate is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []log.Notification

func (*NotificationLogRepository_Expecter) ListAlertIDsBySilenceID

func (_e *NotificationLogRepository_Expecter) ListAlertIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListAlertIDsBySilenceID_Call

ListAlertIDsBySilenceID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*NotificationLogRepository_Expecter) ListSubscriptionIDsBySilenceID

func (_e *NotificationLogRepository_Expecter) ListSubscriptionIDsBySilenceID(_a0 interface{}, _a1 interface{}) *NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call

ListSubscriptionIDsBySilenceID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type NotificationLogRepository_ListAlertIDsBySilenceID_Call

type NotificationLogRepository_ListAlertIDsBySilenceID_Call struct {
	*mock.Call
}

NotificationLogRepository_ListAlertIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAlertIDsBySilenceID'

func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) Return

func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) Run

func (*NotificationLogRepository_ListAlertIDsBySilenceID_Call) RunAndReturn added in v0.6.1

type NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call

type NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call struct {
	*mock.Call
}

NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSubscriptionIDsBySilenceID'

func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Return

func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) Run

func (*NotificationLogRepository_ListSubscriptionIDsBySilenceID_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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