mock

package
v0.0.0-...-2b514f4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSessionRepository

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

MockSessionRepository is a mock of SessionRepository interface.

func NewMockSessionRepository

func NewMockSessionRepository(ctrl *gomock.Controller) *MockSessionRepository

NewMockSessionRepository creates a new mock instance.

func (*MockSessionRepository) Create

func (m *MockSessionRepository) Create(ctx context.Context, session domain.Session) error

Create mocks base method.

func (*MockSessionRepository) EXPECT

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

func (*MockSessionRepository) GetSession

func (m *MockSessionRepository) GetSession(ctx context.Context, userID uuid.UUID) (*domain.Session, error)

GetSession mocks base method.

type MockSessionRepositoryMockRecorder

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

MockSessionRepositoryMockRecorder is the mock recorder for MockSessionRepository.

func (*MockSessionRepositoryMockRecorder) Create

func (mr *MockSessionRepositoryMockRecorder) Create(ctx, session interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSessionRepositoryMockRecorder) GetSession

func (mr *MockSessionRepositoryMockRecorder) GetSession(ctx, userID interface{}) *gomock.Call

GetSession indicates an expected call of GetSession.

type MockSessionService

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

MockSessionService is a mock of SessionService interface.

func NewMockSessionService

func NewMockSessionService(ctrl *gomock.Controller) *MockSessionService

NewMockSessionService creates a new mock instance.

func (*MockSessionService) Create

func (m *MockSessionService) Create(ctx context.Context, user domain.User) (string, error)

Create mocks base method.

func (*MockSessionService) EXPECT

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

func (*MockSessionService) GetSession

func (m *MockSessionService) GetSession(ctx context.Context, token string) (*domain.Session, error)

GetSession mocks base method.

type MockSessionServiceMockRecorder

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

MockSessionServiceMockRecorder is the mock recorder for MockSessionService.

func (*MockSessionServiceMockRecorder) Create

func (mr *MockSessionServiceMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSessionServiceMockRecorder) GetSession

func (mr *MockSessionServiceMockRecorder) GetSession(ctx, token interface{}) *gomock.Call

GetSession indicates an expected call of GetSession.

type MockUserHandler

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

MockUserHandler is a mock of UserHandler interface.

func NewMockUserHandler

func NewMockUserHandler(ctrl *gomock.Controller) *MockUserHandler

NewMockUserHandler creates a new mock instance.

func (*MockUserHandler) Create

func (m *MockUserHandler) Create(ctx echo.Context) error

Create mocks base method.

func (*MockUserHandler) EXPECT

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

func (*MockUserHandler) SignIn

func (m *MockUserHandler) SignIn(ctx echo.Context) error

SignIn mocks base method.

type MockUserHandlerMockRecorder

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

MockUserHandlerMockRecorder is the mock recorder for MockUserHandler.

func (*MockUserHandlerMockRecorder) Create

func (mr *MockUserHandlerMockRecorder) Create(ctx interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserHandlerMockRecorder) SignIn

func (mr *MockUserHandlerMockRecorder) SignIn(ctx interface{}) *gomock.Call

SignIn indicates an expected call of SignIn.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(ctx context.Context, user domain.User) error

Create mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetByEmail

func (m *MockUserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)

GetByEmail mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) Create

func (mr *MockUserRepositoryMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserRepositoryMockRecorder) GetByEmail

func (mr *MockUserRepositoryMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call

GetByEmail indicates an expected call of GetByEmail.

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) Create

func (m *MockUserService) Create(ctx context.Context, payload domain.UserPayload) error

Create mocks base method.

func (*MockUserService) EXPECT

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

func (*MockUserService) SignIn

SignIn mocks base method.

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) Create

func (mr *MockUserServiceMockRecorder) Create(ctx, payload interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserServiceMockRecorder) SignIn

func (mr *MockUserServiceMockRecorder) SignIn(ctx, payload interface{}) *gomock.Call

SignIn indicates an expected call of SignIn.

Jump to

Keyboard shortcuts

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