mocks

package
v0.0.0-...-5f8c54e Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 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 MessageRepositoryMock

type MessageRepositoryMock struct {
	mock.Mock
}

func (*MessageRepositoryMock) DeleteByID

func (m *MessageRepositoryMock) DeleteByID(ctx context.Context, id string) error

func (*MessageRepositoryMock) GetAll

func (*MessageRepositoryMock) GetByID

func (*MessageRepositoryMock) Save

func (m *MessageRepositoryMock) Save(ctx context.Context, message domain.Message) error

type MessageUseCaseMock

type MessageUseCaseMock struct {
	mock.Mock
}

func (*MessageUseCaseMock) DeleteByID

func (m *MessageUseCaseMock) DeleteByID(ctx context.Context, id string) error

func (*MessageUseCaseMock) GetAll

func (m *MessageUseCaseMock) GetAll(ctx context.Context) ([]domain.Message, error)

func (*MessageUseCaseMock) GetByID

func (m *MessageUseCaseMock) GetByID(ctx context.Context, id string) (domain.Message, error)

func (*MessageUseCaseMock) Save

func (m *MessageUseCaseMock) Save(ctx context.Context, content string) (domain.Message, error)

type UUIDGeneratorMock

type UUIDGeneratorMock struct {
	mock.Mock
}

func (*UUIDGeneratorMock) New

func (u *UUIDGeneratorMock) New() string

Jump to

Keyboard shortcuts

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