mockproduct

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mockproduct 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) Create

func (m *MockRepository) Create(ctx context.Context, entity *product.Product) error

Create mocks base method

func (*MockRepository) EXPECT

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

func (*MockRepository) Load

func (m *MockRepository) Load(ctx context.Context, id string) (*product.Product, error)

Load mocks base method

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, id string, entity *product.Product) error

Update mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, entity interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockRepositoryMockRecorder) Load

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

Load indicates an expected call of Load

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, id, entity 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