mock

package
v0.0.0-...-6a62363 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 4 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 MockIUserRepo

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

MockIUserRepo is a mock of IUserRepo interface.

func NewMockIUserRepo

func NewMockIUserRepo(ctrl *gomock.Controller) *MockIUserRepo

NewMockIUserRepo creates a new mock instance.

func (*MockIUserRepo) EXPECT

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

func (*MockIUserRepo) GetUserByName

func (m *MockIUserRepo) GetUserByName(ctx context.Context, name string) (*models.User, error)

GetUserByName mocks base method.

type MockIUserRepoMockRecorder

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

MockIUserRepoMockRecorder is the mock recorder for MockIUserRepo.

func (*MockIUserRepoMockRecorder) GetUserByName

func (mr *MockIUserRepoMockRecorder) GetUserByName(ctx, name interface{}) *gomock.Call

GetUserByName indicates an expected call of GetUserByName.

type MockIUserService

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

MockIUserService is a mock of IUserService interface.

func NewMockIUserService

func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService

NewMockIUserService creates a new mock instance.

func (*MockIUserService) EXPECT

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

func (*MockIUserService) GetUserByName

func (m *MockIUserService) GetUserByName(ctx context.Context, name string) (*models.User, error)

GetUserByName mocks base method.

type MockIUserServiceMockRecorder

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

MockIUserServiceMockRecorder is the mock recorder for MockIUserService.

func (*MockIUserServiceMockRecorder) GetUserByName

func (mr *MockIUserServiceMockRecorder) GetUserByName(ctx, name interface{}) *gomock.Call

GetUserByName indicates an expected call of GetUserByName.

Jump to

Keyboard shortcuts

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