mocks

package
v0.0.0-...-354f3a1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 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 CreateUserUseCase

type CreateUserUseCase struct {
	mock.Mock
}

CreateUserUseCase is an autogenerated mock type for the CreateUserUseCase type

func (*CreateUserUseCase) Create

func (_m *CreateUserUseCase) Create(user entity.User) (entity.User, error)

Create provides a mock function with given fields: user

type DeleteUserUseCase

type DeleteUserUseCase struct {
	mock.Mock
}

DeleteUserUseCase is an autogenerated mock type for the DeleteUserUseCase type

func (*DeleteUserUseCase) Delete

func (_m *DeleteUserUseCase) Delete(id entity.UserID) error

Delete provides a mock function with given fields: id

type GetUserUseCase

type GetUserUseCase struct {
	mock.Mock
}

GetUserUseCase is an autogenerated mock type for the GetUserUseCase type

func (*GetUserUseCase) Get

func (_m *GetUserUseCase) Get(id entity.UserID) (entity.User, error)

Get provides a mock function with given fields: id

type ListUsersUseCase

type ListUsersUseCase struct {
	mock.Mock
}

ListUsersUseCase is an autogenerated mock type for the ListUsersUseCase type

func (*ListUsersUseCase) List

func (_m *ListUsersUseCase) List() ([]entity.User, error)

List provides a mock function with given fields:

type UseCaseError

type UseCaseError struct {
	mock.Mock
}

UseCaseError is an autogenerated mock type for the UseCaseError type

func (*UseCaseError) Error

func (_m *UseCaseError) Error() string

Error provides a mock function with given fields:

func (*UseCaseError) Type

func (_m *UseCaseError) Type() usecase.ErrorType

Type provides a mock function with given fields:

Jump to

Keyboard shortcuts

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