mock_user

package
v0.0.0-...-5863de9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_user is a generated GoMock package.

Package mock_user is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) FindUser

func (m *MockRepository) FindUser(ctx context.Context, username string) (*domain.User, error)

FindUser mocks base method.

func (*MockRepository) SaveUser

func (m *MockRepository) SaveUser(ctx context.Context, user *domain.User) error

SaveUser mocks base method.

func (*MockRepository) SearchUser

func (m *MockRepository) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)

SearchUser mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) FindUser

func (mr *MockRepositoryMockRecorder) FindUser(ctx, username any) *gomock.Call

FindUser indicates an expected call of FindUser.

func (*MockRepositoryMockRecorder) SaveUser

func (mr *MockRepositoryMockRecorder) SaveUser(ctx, user any) *gomock.Call

SaveUser indicates an expected call of SaveUser.

func (*MockRepositoryMockRecorder) SearchUser

func (mr *MockRepositoryMockRecorder) SearchUser(ctx, specification any) *gomock.Call

SearchUser indicates an expected call of SearchUser.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) SaveUser

func (m *MockService) SaveUser(ctx context.Context, user *domain.User) error

SaveUser mocks base method.

func (*MockService) SearchUser

func (m *MockService) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error)

SearchUser mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) SaveUser

func (mr *MockServiceMockRecorder) SaveUser(ctx, user any) *gomock.Call

SaveUser indicates an expected call of SaveUser.

func (*MockServiceMockRecorder) SearchUser

func (mr *MockServiceMockRecorder) SearchUser(ctx, specification any) *gomock.Call

SearchUser indicates an expected call of SearchUser.

Jump to

Keyboard shortcuts

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