mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.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 NotificationService

type NotificationService struct {
	mock.Mock
}

NotificationService is an autogenerated mock type for the NotificationService type

func NewNotificationService

func NewNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationService

NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) CreateNotification

func (_m *NotificationService) CreateNotification(ctx context.Context, notificationIn models.Notification) (models.Notification, error)

CreateNotification provides a mock function with given fields: ctx, notificationIn

func (*NotificationService) EXPECT

func (*NotificationService) ListNotifications

func (_m *NotificationService) ListNotifications(ctx context.Context, resultSelector query.ResultSelector) ([]models.Notification, uint64, error)

ListNotifications provides a mock function with given fields: ctx, resultSelector

type NotificationService_CreateNotification_Call

type NotificationService_CreateNotification_Call struct {
	*mock.Call
}

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

func (*NotificationService_CreateNotification_Call) Return

func (*NotificationService_CreateNotification_Call) Run

func (*NotificationService_CreateNotification_Call) RunAndReturn

type NotificationService_Expecter

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

func (*NotificationService_Expecter) CreateNotification

func (_e *NotificationService_Expecter) CreateNotification(ctx interface{}, notificationIn interface{}) *NotificationService_CreateNotification_Call

CreateNotification is a helper method to define mock.On call

  • ctx context.Context
  • notificationIn models.Notification

func (*NotificationService_Expecter) ListNotifications

func (_e *NotificationService_Expecter) ListNotifications(ctx interface{}, resultSelector interface{}) *NotificationService_ListNotifications_Call

ListNotifications is a helper method to define mock.On call

  • ctx context.Context
  • resultSelector query.ResultSelector

type NotificationService_ListNotifications_Call

type NotificationService_ListNotifications_Call struct {
	*mock.Call
}

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

func (*NotificationService_ListNotifications_Call) Return

func (*NotificationService_ListNotifications_Call) Run

func (*NotificationService_ListNotifications_Call) RunAndReturn

Jump to

Keyboard shortcuts

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