mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 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 AlertRepository

type AlertRepository struct {
	mock.Mock
}

AlertRepository is an autogenerated mock type for the Repository type

func NewAlertRepository

func NewAlertRepository(t mockConstructorTestingTNewAlertRepository) *AlertRepository

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

func (*AlertRepository) Create

func (_m *AlertRepository) Create(_a0 context.Context, _a1 *alert.Alert) (*alert.Alert, error)

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

func (*AlertRepository) EXPECT

func (*AlertRepository) List

func (_m *AlertRepository) List(_a0 context.Context, _a1 alert.Filter) ([]alert.Alert, error)

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

type AlertRepository_Create_Call

type AlertRepository_Create_Call struct {
	*mock.Call
}

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

func (*AlertRepository_Create_Call) Return

func (*AlertRepository_Create_Call) Run

type AlertRepository_Expecter

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

func (*AlertRepository_Expecter) Create

func (_e *AlertRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *AlertRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *alert.Alert

func (*AlertRepository_Expecter) List

func (_e *AlertRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *AlertRepository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 alert.Filter

type AlertRepository_List_Call

type AlertRepository_List_Call struct {
	*mock.Call
}

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

func (*AlertRepository_List_Call) Return

func (*AlertRepository_List_Call) Run

Jump to

Keyboard shortcuts

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