mock_handlers

package
v0.0.0-...-acbba05 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_handlers is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProductRepo

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

MockProductRepo is a mock of ProductRepo interface.

func NewMockProductRepo

func NewMockProductRepo(ctrl *gomock.Controller) *MockProductRepo

NewMockProductRepo creates a new mock instance.

func (*MockProductRepo) All

func (m *MockProductRepo) All(arg0 context.Context) (*[]models.Product, error)

All mocks base method.

func (*MockProductRepo) Create

func (m *MockProductRepo) Create(arg0 context.Context, arg1 *models.Product) error

Create mocks base method.

func (*MockProductRepo) Destroy

func (m *MockProductRepo) Destroy(arg0 context.Context, arg1 int) error

Destroy mocks base method.

func (*MockProductRepo) EXPECT

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

func (*MockProductRepo) Find

func (m *MockProductRepo) Find(arg0 context.Context, arg1 int) (*models.Product, error)

Find mocks base method.

func (*MockProductRepo) Update

func (m *MockProductRepo) Update(arg0 context.Context, arg1 *models.Product) error

Update mocks base method.

type MockProductRepoMockRecorder

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

MockProductRepoMockRecorder is the mock recorder for MockProductRepo.

func (*MockProductRepoMockRecorder) All

func (mr *MockProductRepoMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockProductRepoMockRecorder) Create

func (mr *MockProductRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockProductRepoMockRecorder) Destroy

func (mr *MockProductRepoMockRecorder) Destroy(arg0, arg1 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockProductRepoMockRecorder) Find

func (mr *MockProductRepoMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockProductRepoMockRecorder) Update

func (mr *MockProductRepoMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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