mock_contract

package
v0.0.0-...-05cdca5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_contract is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIAccount

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

MockIAccount is a mock of IAccount interface.

func NewMockIAccount

func NewMockIAccount(ctrl *gomock.Controller) *MockIAccount

NewMockIAccount creates a new mock instance.

func (*MockIAccount) EXPECT

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

func (*MockIAccount) GetID

func (m *MockIAccount) GetID() string

GetID mocks base method.

func (*MockIAccount) GetLogin

func (m *MockIAccount) GetLogin() string

GetLogin mocks base method.

func (*MockIAccount) SetPasswordHash

func (m *MockIAccount) SetPasswordHash(arg0 string)

SetPasswordHash mocks base method.

type MockIAccountMockRecorder

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

MockIAccountMockRecorder is the mock recorder for MockIAccount.

func (*MockIAccountMockRecorder) GetID

func (mr *MockIAccountMockRecorder) GetID() *gomock.Call

GetID indicates an expected call of GetID.

func (*MockIAccountMockRecorder) GetLogin

func (mr *MockIAccountMockRecorder) GetLogin() *gomock.Call

GetLogin indicates an expected call of GetLogin.

func (*MockIAccountMockRecorder) SetPasswordHash

func (mr *MockIAccountMockRecorder) SetPasswordHash(arg0 interface{}) *gomock.Call

SetPasswordHash indicates an expected call of SetPasswordHash.

type MockIAuthRepository

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

MockIAuthRepository is a mock of IAuthRepository interface.

func NewMockIAuthRepository

func NewMockIAuthRepository(ctrl *gomock.Controller) *MockIAuthRepository

NewMockIAuthRepository creates a new mock instance.

func (*MockIAuthRepository) Create

func (m *MockIAuthRepository) Create(ctx context.Context, login, password string) (contract.IAccount, error)

Create mocks base method.

func (*MockIAuthRepository) EXPECT

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

func (*MockIAuthRepository) Find

func (m *MockIAuthRepository) Find(ctx context.Context, login, password string) (contract.IAccount, error)

Find mocks base method.

type MockIAuthRepositoryMockRecorder

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

MockIAuthRepositoryMockRecorder is the mock recorder for MockIAuthRepository.

func (*MockIAuthRepositoryMockRecorder) Create

func (mr *MockIAuthRepositoryMockRecorder) Create(ctx, login, password interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockIAuthRepositoryMockRecorder) Find

func (mr *MockIAuthRepositoryMockRecorder) Find(ctx, login, password interface{}) *gomock.Call

Find indicates an expected call of Find.

type MockIAuthService

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

MockIAuthService is a mock of IAuthService interface.

func NewMockIAuthService

func NewMockIAuthService(ctrl *gomock.Controller) *MockIAuthService

NewMockIAuthService creates a new mock instance.

func (*MockIAuthService) EXPECT

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

func (*MockIAuthService) SignIn

func (m *MockIAuthService) SignIn(ctx context.Context, login, password string) (contract.IAccount, error)

SignIn mocks base method.

func (*MockIAuthService) SignUp

func (m *MockIAuthService) SignUp(ctx context.Context, login, password string) (contract.IAccount, error)

SignUp mocks base method.

type MockIAuthServiceMockRecorder

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

MockIAuthServiceMockRecorder is the mock recorder for MockIAuthService.

func (*MockIAuthServiceMockRecorder) SignIn

func (mr *MockIAuthServiceMockRecorder) SignIn(ctx, login, password interface{}) *gomock.Call

SignIn indicates an expected call of SignIn.

func (*MockIAuthServiceMockRecorder) SignUp

func (mr *MockIAuthServiceMockRecorder) SignUp(ctx, login, password interface{}) *gomock.Call

SignUp indicates an expected call of SignUp.

type MockIPassHasher

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

MockIPassHasher is a mock of IPassHasher interface.

func NewMockIPassHasher

func NewMockIPassHasher(ctrl *gomock.Controller) *MockIPassHasher

NewMockIPassHasher creates a new mock instance.

func (*MockIPassHasher) ComparePassword

func (m *MockIPassHasher) ComparePassword(hashedPwd string, plainPwd []byte) (bool, error)

ComparePassword mocks base method.

func (*MockIPassHasher) EXPECT

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

func (*MockIPassHasher) HashPassword

func (m *MockIPassHasher) HashPassword(password []byte) (string, error)

HashPassword mocks base method.

type MockIPassHasherMockRecorder

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

MockIPassHasherMockRecorder is the mock recorder for MockIPassHasher.

func (*MockIPassHasherMockRecorder) ComparePassword

func (mr *MockIPassHasherMockRecorder) ComparePassword(hashedPwd, plainPwd interface{}) *gomock.Call

ComparePassword indicates an expected call of ComparePassword.

func (*MockIPassHasherMockRecorder) HashPassword

func (mr *MockIPassHasherMockRecorder) HashPassword(password interface{}) *gomock.Call

HashPassword indicates an expected call of HashPassword.

type MockITokenProvider

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

MockITokenProvider is a mock of ITokenProvider interface.

func NewMockITokenProvider

func NewMockITokenProvider(ctrl *gomock.Controller) *MockITokenProvider

NewMockITokenProvider creates a new mock instance.

func (*MockITokenProvider) EXPECT

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

func (*MockITokenProvider) GenerateToken

func (m *MockITokenProvider) GenerateToken(ctx context.Context, userID string) (string, error)

GenerateToken mocks base method.

func (*MockITokenProvider) ValidateToken

func (m *MockITokenProvider) ValidateToken(ctx context.Context, token string) (string, error)

ValidateToken mocks base method.

type MockITokenProviderMockRecorder

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

MockITokenProviderMockRecorder is the mock recorder for MockITokenProvider.

func (*MockITokenProviderMockRecorder) GenerateToken

func (mr *MockITokenProviderMockRecorder) GenerateToken(ctx, userID interface{}) *gomock.Call

GenerateToken indicates an expected call of GenerateToken.

func (*MockITokenProviderMockRecorder) ValidateToken

func (mr *MockITokenProviderMockRecorder) ValidateToken(ctx, token interface{}) *gomock.Call

ValidateToken indicates an expected call of ValidateToken.

Jump to

Keyboard shortcuts

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