accountserviceiface

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package accountserviceiface is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService interface {
	Create(ctx context.Context, mobile, email, password string) (int64, error)
	CheckPasswordById(ctx context.Context, id int64, password string) (int64, error)
	CheckPasswordByMobile(ctx context.Context, mobile, password string) (int64, error)
	CheckPasswordByEmail(ctx context.Context, email, password string) (int64, error)
	ModifyPassword(ctx context.Context, id int64, oldPassword, newPassword string) error
}

type MockAccountService

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

MockAccountService is a mock of AccountService interface.

func NewMockAccountService

func NewMockAccountService(ctrl *gomock.Controller) *MockAccountService

NewMockAccountService creates a new mock instance.

func (*MockAccountService) CheckPasswordByEmail

func (m *MockAccountService) CheckPasswordByEmail(ctx context.Context, email, password string) (int64, error)

CheckPasswordByEmail mocks base method.

func (*MockAccountService) CheckPasswordById

func (m *MockAccountService) CheckPasswordById(ctx context.Context, id int64, password string) (int64, error)

CheckPasswordById mocks base method.

func (*MockAccountService) CheckPasswordByMobile

func (m *MockAccountService) CheckPasswordByMobile(ctx context.Context, mobile, password string) (int64, error)

CheckPasswordByMobile mocks base method.

func (*MockAccountService) Create

func (m *MockAccountService) Create(ctx context.Context, mobile, email, password string) (int64, error)

Create mocks base method.

func (*MockAccountService) EXPECT

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

func (*MockAccountService) ModifyPassword

func (m *MockAccountService) ModifyPassword(ctx context.Context, id int64, oldPassword, newPassword string) error

ModifyPassword mocks base method.

type MockAccountServiceMockRecorder

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

MockAccountServiceMockRecorder is the mock recorder for MockAccountService.

func (*MockAccountServiceMockRecorder) CheckPasswordByEmail

func (mr *MockAccountServiceMockRecorder) CheckPasswordByEmail(ctx, email, password any) *gomock.Call

CheckPasswordByEmail indicates an expected call of CheckPasswordByEmail.

func (*MockAccountServiceMockRecorder) CheckPasswordById

func (mr *MockAccountServiceMockRecorder) CheckPasswordById(ctx, id, password any) *gomock.Call

CheckPasswordById indicates an expected call of CheckPasswordById.

func (*MockAccountServiceMockRecorder) CheckPasswordByMobile

func (mr *MockAccountServiceMockRecorder) CheckPasswordByMobile(ctx, mobile, password any) *gomock.Call

CheckPasswordByMobile indicates an expected call of CheckPasswordByMobile.

func (*MockAccountServiceMockRecorder) Create

func (mr *MockAccountServiceMockRecorder) Create(ctx, mobile, email, password any) *gomock.Call

Create indicates an expected call of Create.

func (*MockAccountServiceMockRecorder) ModifyPassword

func (mr *MockAccountServiceMockRecorder) ModifyPassword(ctx, id, oldPassword, newPassword any) *gomock.Call

ModifyPassword indicates an expected call of ModifyPassword.

Jump to

Keyboard shortcuts

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