mock_user

package
v0.0.0-...-4955f5c Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT 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) GetByUsername

func (m *MockRepository) GetByUsername(ctx context.Context, username string) (*model.User, error)

GetByUsername mocks base method

func (*MockRepository) List

List mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) GetByUsername

func (mr *MockRepositoryMockRecorder) GetByUsername(ctx, username interface{}) *gomock.Call

GetByUsername indicates an expected call of GetByUsername

func (*MockRepositoryMockRecorder) List

func (mr *MockRepositoryMockRecorder) List(ctx, id interface{}) *gomock.Call

List indicates an expected call of List

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) GetByUsername

func (m *MockService) GetByUsername(ctx context.Context, username string) (*model.User, error)

GetByUsername mocks base method

func (*MockService) ListUsers

func (m *MockService) ListUsers(ctx context.Context, listRequest *user.ListUsersRequest) ([]model.User, error)

ListUsers mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) GetByUsername

func (mr *MockServiceMockRecorder) GetByUsername(ctx, username interface{}) *gomock.Call

GetByUsername indicates an expected call of GetByUsername

func (*MockServiceMockRecorder) ListUsers

func (mr *MockServiceMockRecorder) ListUsers(ctx, listRequest interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers

Jump to

Keyboard shortcuts

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