mocks

package
v0.0.0-...-7b55a8f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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 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) CreateNotification

func (_m *Repository) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)

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

func (*Repository) DeleteNotification

func (_m *Repository) DeleteNotification(ctx context.Context, id string) error

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

func (*Repository) ReadAllNotifications

func (_m *Repository) ReadAllNotifications(ctx context.Context, page notifications.Page) error

ReadAllNotifications provides a mock function with given fields: ctx, page

func (*Repository) ReadNotification

func (_m *Repository) ReadNotification(ctx context.Context, userID string, id string) error

ReadNotification provides a mock function with given fields: ctx, userID, id

func (*Repository) RetrieveAllNotifications

func (_m *Repository) RetrieveAllNotifications(ctx context.Context, page notifications.Page) (notifications.NotificationsPage, error)

RetrieveAllNotifications provides a mock function with given fields: ctx, page

func (*Repository) RetrieveNotification

func (_m *Repository) RetrieveNotification(ctx context.Context, id string) (notifications.Notification, error)

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

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)

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

func (*Service) DeleteNotification

func (_m *Service) DeleteNotification(ctx context.Context, token string, id string) error

DeleteNotification provides a mock function with given fields: ctx, token, id

func (*Service) GetNewNotification

func (_m *Service) GetNewNotification(ctx context.Context, userID string) notifications.Notification

GetNewNotification provides a mock function with given fields: ctx, userID

func (*Service) IdentifyUser

func (_m *Service) IdentifyUser(ctx context.Context, token string) (string, error)

IdentifyUser provides a mock function with given fields: ctx, token

func (*Service) ReadAllNotifications

func (_m *Service) ReadAllNotifications(ctx context.Context, token string, page notifications.Page) error

ReadAllNotifications provides a mock function with given fields: ctx, token, page

func (*Service) ReadNotification

func (_m *Service) ReadNotification(ctx context.Context, token string, id string) error

ReadNotification provides a mock function with given fields: ctx, token, id

func (*Service) RetrieveAllNotifications

func (_m *Service) RetrieveAllNotifications(ctx context.Context, token string, page notifications.Page) (notifications.NotificationsPage, error)

RetrieveAllNotifications provides a mock function with given fields: ctx, token, page

func (*Service) RetrieveNotification

func (_m *Service) RetrieveNotification(ctx context.Context, token string, id string) (notifications.Notification, error)

RetrieveNotification provides a mock function with given fields: ctx, token, id

Jump to

Keyboard shortcuts

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