mocks

package
v0.0.0-...-fec64ea Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserService

type MockUserService struct {
	mock.Mock
}

MockUserService is an autogenerated mock type for the UserService type

func NewMockUserService

func NewMockUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUserService

NewMockUserService creates a new instance of MockUserService. 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 (*MockUserService) CreateUser

func (_m *MockUserService) CreateUser(ctx context.Context, user domain.User) (domain.User, error)

CreateUser provides a mock function with given fields: ctx, user

func (*MockUserService) DeleteUser

func (_m *MockUserService) DeleteUser(ctx context.Context, id string) error

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

func (*MockUserService) GetUserByID

func (_m *MockUserService) GetUserByID(ctx context.Context, id string) (domain.User, error)

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

func (*MockUserService) ListUsers

ListUsers provides a mock function with given fields: ctx, filter

func (*MockUserService) UpdateUser

func (_m *MockUserService) UpdateUser(ctx context.Context, user domain.User) (domain.User, error)

UpdateUser provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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