mocks

package
v0.12.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	mock.Mock
}

Notifier is an autogenerated mock type for the notifier type

func NewNotifier

func NewNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Notifier

NewNotifier creates a new instance of Notifier. 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 (*Notifier) EXPECT

func (_m *Notifier) EXPECT() *Notifier_Expecter

func (*Notifier) Notify

func (_m *Notifier) Notify(_a0 context.Context, _a1 []domain.Notification) []error

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

type Notifier_Expecter

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

func (*Notifier_Expecter) Notify

func (_e *Notifier_Expecter) Notify(_a0 interface{}, _a1 interface{}) *Notifier_Notify_Call

Notify is a helper method to define mock.On call

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

type Notifier_Notify_Call

type Notifier_Notify_Call struct {
	*mock.Call
}

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

func (*Notifier_Notify_Call) Return

func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call

func (*Notifier_Notify_Call) Run

func (*Notifier_Notify_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetPendingApprovalsList

func (_m *Repository) GetPendingApprovalsList(ctx context.Context, filters *report.PendingApprovalsReportFilter) ([]*report.PendingApprovalModel, error)

GetPendingApprovalsList provides a mock function with given fields: ctx, filters

type Repository_Expecter

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

func (*Repository_Expecter) GetPendingApprovalsList

func (_e *Repository_Expecter) GetPendingApprovalsList(ctx interface{}, filters interface{}) *Repository_GetPendingApprovalsList_Call

GetPendingApprovalsList is a helper method to define mock.On call

  • ctx context.Context
  • filters *report.PendingApprovalsReportFilter

type Repository_GetPendingApprovalsList_Call

type Repository_GetPendingApprovalsList_Call struct {
	*mock.Call
}

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

func (*Repository_GetPendingApprovalsList_Call) Return

func (*Repository_GetPendingApprovalsList_Call) Run

Jump to

Keyboard shortcuts

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