mockrepo

package
v0.0.0-...-50d91fd Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mockrepo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, ent entity.User) (entity.User, error)

Create mocks base method

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetByID

func (m *MockUserRepository) GetByID(ctx context.Context, id interface{}) (entity.User, error)

GetByID 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, ent interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockUserRepositoryMockRecorder) GetByID

func (mr *MockUserRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

Jump to

Keyboard shortcuts

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